safeseh:no only for msvc

This commit is contained in:
def 2017-07-30 14:35:06 +02:00
parent d9aeeae3fc
commit cb6158dd6a

View file

@ -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()