diff --git a/CMakeLists.txt b/CMakeLists.txt index e077cf8..7f4a34d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -279,7 +279,7 @@ target_compile_features( PRIVATE cxx_std_11 ) -if(APPLE) +if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") SET(CMAKE_C_ARCHIVE_FINISH " -no_warning_for_no_symbols -c ") SET(CMAKE_CXX_ARCHIVE_FINISH " -no_warning_for_no_symbols -c ") endif()