diff --git a/cmake/toolchain.cmake b/cmake/toolchain.cmake index 4a72668..d5bed4f 100644 --- a/cmake/toolchain.cmake +++ b/cmake/toolchain.cmake @@ -1,6 +1,8 @@ #compile with warnings if(WIN32) - add_compile_options(/W4 /WX "$<$:/MTd>") + add_compile_options(/W4 /WX) + set_property(PROPERTY + MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") else() add_compile_options(-Wall -Wextra -pedantic -Werror) endif()