Only using the static non debug runtime library

This commit is contained in:
WolverinDEV 2021-03-27 14:24:49 +01:00
parent 8dde5b1c23
commit 2aba908be6

View File

@ -89,7 +89,7 @@ if (MSVC)
CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_RELEASE
) )
foreach(CompilerFlag ${CompilerFlags}) foreach(CompilerFlag ${CompilerFlags})
string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}") string(REGEX REPLACE "/M[DT]d?" "/MT" ${CompilerFlag} "${${CompilerFlag}}")
endforeach() endforeach()
add_compile_options("/EHsc") #We require exception handling add_compile_options("/EHsc") #We require exception handling
else() else()