diff --git a/CMakeLists.txt b/CMakeLists.txt index fd1345a..dc0e31f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -256,11 +256,8 @@ target_compile_features( ) if(APPLE) - set_property( - TARGET ${target_name} - APPEND - PROPERTY STATIC_LIBRARY_FLAGS "-no_warning_for_no_symbols" - ) + SET(CMAKE_C_ARCHIVE_FINISH " -no_warning_for_no_symbols -c ") + SET(CMAKE_CXX_ARCHIVE_FINISH " -no_warning_for_no_symbols -c ") endif() # =============================================== Apply options to build ===============================================