diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt index cd1857c3d..063a269c4 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt @@ -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 " Scr ") SET(CMAKE_CXX_ARCHIVE_CREATE " Scr ") SET(CMAKE_C_ARCHIVE_FINISH " -no_warning_for_no_symbols -c ") SET(CMAKE_CXX_ARCHIVE_FINISH " -no_warning_for_no_symbols -c ") -endif(APPLE) +endif() if(USE_PKCS11_HELPER_LIBRARY) set(libs ${libs} pkcs11-helper)