Adding MSVC_RUNTIME_LIBRARY to global property.

This commit is contained in:
Ólafur Waage 2021-09-10 11:35:15 +02:00
parent e07616ea52
commit 7fbe29740c
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
#compile with warnings
if(WIN32)
add_compile_options(/W4 /WX "$<$<CONFIG:DEBUG>:/MTd>")
add_compile_options(/W4 /WX)
set_property(PROPERTY
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
else()
add_compile_options(-Wall -Wextra -pedantic -Werror)
endif()