From 7f3ef2780c1825fbc2270f49c6834502cc8c26e1 Mon Sep 17 00:00:00 2001 From: TabascoEye Date: Fri, 27 Apr 2018 13:14:59 +0200 Subject: [PATCH] silence "no symbols" warnings on apple clang fixes #1252 --- library/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt index 6177ca2b4c..cd1857c3da 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt @@ -96,6 +96,13 @@ if(WIN32) set(libs ${libs} ws2_32) endif(WIN32) +if(APPLE) + 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) + if(USE_PKCS11_HELPER_LIBRARY) set(libs ${libs} pkcs11-helper) endif(USE_PKCS11_HELPER_LIBRARY)