From cb6158dd6aa07aeabb908665cabc96c3a10d37af Mon Sep 17 00:00:00 2001 From: def Date: Sun, 30 Jul 2017 14:35:06 +0200 Subject: [PATCH] safeseh:no only for msvc --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 14609697e..1d5d068c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -473,7 +473,7 @@ foreach(target ${TARGETS}) endif() endforeach() -if(TARGET_OS STREQUAL "windows") +if(TARGET_OS STREQUAL "windows" AND MSVC) set_property(TARGET ${TARGET_CLIENT} APPEND PROPERTY LINK_FLAGS /SAFESEH:NO) # Disable SafeSEH because the shipped libraries don't support it. endif()