Skip to content

Commit 6266376

Browse files
authored
Update CMakeLists.txt
1 parent 8e19f70 commit 6266376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ else ()
3636
set (MSVC_RUNTIME_TYPE "/MD")
3737
endif ()
3838
endif ()
39-
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${MSVC_RUNTIME_TYPE}")
39+
set (CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE} "${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE}} ${MSVC_RUNTIME_TYPE}")
4040
endif()
4141

4242
if("${GTEST_ROOT}" STREQUAL "" AND WITH_TESTS)

0 commit comments

Comments
 (0)