Try another way to set no_warning_for_no_symbols

This commit is contained in:
Jeremy 2023-11-06 17:18:57 -05:00
parent cd9d29bf2b
commit 01ac14ba92
No known key found for this signature in database
GPG Key ID: BE03111EB7ED6E2E

View File

@ -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 "<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>")
SET(CMAKE_CXX_ARCHIVE_FINISH "<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>")
endif()
# =============================================== Apply options to build ===============================================