mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Windows compiler fix
This commit is contained in:
parent
0db98b218b
commit
6b9386ce86
|
@ -446,6 +446,7 @@ foreach(target ${TARGETS})
|
|||
target_compile_options(${target} PRIVATE /EHsc) # Only catch C++ exceptions with catch.
|
||||
target_compile_options(${target} PRIVATE /GS) # Protect the stack pointer.
|
||||
target_compile_options(${target} PRIVATE /wd4996) # Use of non-_s functions.
|
||||
target_compile_options(${target} PRIVATE /SAFESEH:NO) # No Windows 8 store
|
||||
elseif(CMAKE_CXX_COMPILER_ID MATCHES Clang OR CMAKE_CXX_COMPILER_ID MATCHES GNU)
|
||||
if(ENABLE_STACK_PROTECTOR)
|
||||
target_compile_options(${target} PRIVATE -fstack-protector-all) # Protect the stack pointer.
|
||||
|
|
Loading…
Reference in a new issue