File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,18 @@ ENDIF()
24
24
SET (GTEST_SRC ${GTEST_SOURCE_DIR} )
25
25
SET (GTEST_BUILD ${GTEST_BINARY_DIR} )
26
26
SET (GTEST_INCLUDE_DIRS "${GTEST_SRC} /include" )
27
- SET (GTEST_LIBRARY_DIRS "${GTEST_BUILD} /ReleaseLibs" )
27
+
28
+ IF (NOT CMAKE_BUILD_TYPE )
29
+ SET (GTEST_LIBRARY_DIRS "${GTEST_BUILD} /ReleaseLibs" )
30
+ ELSE (NOT CMAKE_BUILD_TYPE )
31
+ IF (CMAKE_BUILD_TYPE EQUAL "Release" )
32
+ SET (GTEST_LIBRARY_DIRS "${GTEST_BUILD} /ReleaseLibs" )
33
+ ELSE (CMAKE_BUILD_TYPE EQUAL "Release" )
34
+ SET (GTEST_LIBRARY_DIRS "${GTEST_BUILD} /DebugLibs" )
35
+ ENDIF (CMAKE_BUILD_TYPE EQUAL "Release" )
36
+ ENDIF (NOT CMAKE_BUILD_TYPE )
37
+
38
+
28
39
29
40
SET (GTEST_BOTH_LIBRARIES "${GTEST_LIBRARY_DIRS} /${CMAKE_STATIC_LIBRARY_PREFIX} gtest${CMAKE_STATIC_LIBRARY_SUFFIX} "
30
41
"${GTEST_LIBRARY_DIRS} /${CMAKE_STATIC_LIBRARY_PREFIX} gtest_main${CMAKE_STATIC_LIBRARY_SUFFIX} " )
You can’t perform that action at this time.
0 commit comments