Replace check with APPLE with CMAKE_SYSTEM_NAME

This commit is contained in:
Andres Amaya Garcia 2018-06-21 20:21:38 +01:00
parent e3402ce44f
commit bf7fe4f3f0

View File

@ -96,12 +96,12 @@ if(WIN32)
set(libs ${libs} ws2_32)
endif(WIN32)
if(APPLE)
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
SET(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>")
SET(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>")
SET(CMAKE_C_ARCHIVE_FINISH "<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>")
SET(CMAKE_CXX_ARCHIVE_FINISH "<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>")
endif(APPLE)
endif()
if(USE_PKCS11_HELPER_LIBRARY)
set(libs ${libs} pkcs11-helper)