File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,13 @@ if (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang" OR ${CMAKE_CXX_COMPILER_ID} MATCHES
3030else ()
3131 # MSVC
3232 if (NOT DEFINED MSVC_RUNTIME_TYPE)
33- if (CMAKE_BUILD_TYPE MATCHES "Debug" )
34- set (MSVC_RUNTIME_TYPE "/MDd" )
35- else ()
36- set (MSVC_RUNTIME_TYPE "/MD" )
37- endif ()
33+ set (MSVC_RUNTIME_TYPE "/MD" )
34+ endif ()
35+ if (CMAKE_BUILD_TYPE MATCHES "Debug" )
36+ set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${MSVC_RUNTIME_TYPE} d" )
37+ else ()
38+ set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${MSVC_RUNTIME_TYPE} " )
3839 endif ()
39- set (CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE} "${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE} } ${MSVC_RUNTIME_TYPE} " )
4040endif ()
4141
4242if ("${GTEST_ROOT} " STREQUAL "" AND WITH_TESTS)
You can’t perform that action at this time.
0 commit comments