diff --git a/cmake/addcompilerandlinkerflags.cmake b/cmake/addcompilerandlinkerflags.cmake index 4fc6b0d..ab6edb5 100644 --- a/cmake/addcompilerandlinkerflags.cmake +++ b/cmake/addcompilerandlinkerflags.cmake @@ -34,6 +34,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") set(CMAKE_CXX_FLAGS_RELEASE "/O2 /MT") set(CMAKE_CXX_FLAGS_DEBUG "/Od /MTd /ZI") set(PROJECT_COMPILE_WARNING_FLAGS /Wall /sdl /WX) + set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") else() set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os") set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")