Windows compiler fix

This commit is contained in:
def 2017-07-22 00:02:00 +02:00
parent 0db98b218b
commit 6b9386ce86

View file

@ -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.