From ee650fabebef027ef6494cd30ed0757db8b6ae70 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Tue, 27 Feb 2024 19:21:51 -0800 Subject: [PATCH] hide linker warn with icu --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 946ba0f4a7..4a5eb5f917 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1050,11 +1050,15 @@ else() endif() if(APPLE) + # this is gated to avoid the following warning when developing on modern versions of macOS. + # ld: warning: object file (/opt/homebrew/opt/icu4c/lib/libicudata.a[2](icudt73l_dat.o)) was built for newer 'macOS' version (14.0) than being linked (11.0) + if(DEFINED ENV{CI}) if(ARCH STREQUAL "x86_64") set(CMAKE_OSX_DEPLOYMENT_TARGET "10.14") else() set(CMAKE_OSX_DEPLOYMENT_TARGET "11.0") endif() + endif() target_link_options(${bun} PUBLIC "-dead_strip") target_link_options(${bun} PUBLIC "-dead_strip_dylibs")