link ssp as static only for WIN32
@@ -71,7 +71,11 @@ include(CheckLibraryExists)
CHECK_LIBRARY_EXISTS(ssp __stack_chk_fail "" _stack_chk_fail_exists)
if (_stack_chk_fail_exists)
+ if(WIN32)
set(SSP_LIB -static ssp)
+ else()
+ set(SSP_LIB -static ssp)
+ endif()
else ()
set(SSP_LIB "")
endif ()
