mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
Use static CRT on windows
This commit is contained in:
parent
2b91785415
commit
50be0ab7cf
|
@ -411,6 +411,8 @@ set(TARGETS ${TARGETS_OWN} ${TARGETS_DEP})
|
|||
|
||||
foreach(target ${TARGETS})
|
||||
if(MSVC)
|
||||
set(DBG $<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>)
|
||||
target_compile_options(${target} PRIVATE $<$<NOT:${DBG}>:/MT> $<${DBG}:/MTd>) # Use static CRT
|
||||
target_compile_options(${target} PRIVATE /MP) # Use multiple cores
|
||||
target_compile_options(${target} PRIVATE /EHsc) # Only catch C++ exceptions with catch.
|
||||
target_compile_options(${target} PRIVATE /GS) # Protect the stack pointer.
|
||||
|
|
Loading…
Reference in a new issue