diff --git a/CMakeLists.txt b/CMakeLists.txt index 621705e..fd1345a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -255,6 +255,14 @@ target_compile_features( PRIVATE cxx_std_11 ) +if(APPLE) + set_property( + TARGET ${target_name} + APPEND + PROPERTY STATIC_LIBRARY_FLAGS "-no_warning_for_no_symbols" + ) +endif() + # =============================================== Apply options to build =============================================== if(HAS_CXX_EXCEPTION_TYPE)