From 01ac14ba92a0215e98a4f9eab140519ace5f5856 Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Mon, 6 Nov 2023 17:18:57 -0500 Subject: [PATCH] Try another way to set no_warning_for_no_symbols --- CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 ===============================================