Skip to content

Commit 00b261c

Browse files
committed
Fix runtime mismatch with gtest on win
1 parent a5ee132 commit 00b261c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bitreader/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ if (NOT WIN32)
2828
add_compile_options(-Wshorten-64-to-32)
2929
endif()
3030
add_compile_options(-Wall -Wconversion -Wsign-conversion -Werror -pedantic)
31+
else()
32+
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
3133
endif()
3234

3335
set(BITREADER_SOURCES

0 commit comments

Comments
 (0)