Suppress ranlib "has no symbols" warnings

This commit is contained in:
Jeremy 2023-11-06 17:14:54 -05:00
parent 3489ed1f72
commit cd9d29bf2b
No known key found for this signature in database
GPG Key ID: BE03111EB7ED6E2E

View File

@ -255,6 +255,14 @@ target_compile_features(
PRIVATE cxx_std_11 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 =============================================== # =============================================== Apply options to build ===============================================
if(HAS_CXX_EXCEPTION_TYPE) if(HAS_CXX_EXCEPTION_TYPE)