From 1475a7890a82a03e636008e42eb0c873456a642a Mon Sep 17 00:00:00 2001 From: Konstantin Pastbin Date: Tue, 3 Jun 2025 14:46:46 +0700 Subject: [PATCH] [ios][cmake] Fix building with XCode Signed-off-by: Konstantin Pastbin --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5d40f89b0..ac3f9c77a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,9 @@ set(CMAKE_CXX_VISIBILITY_PRESET hidden) set(CMAKE_VISIBILITY_INLINES_HIDDEN ON) # Disable build-id generation to make builds reproducible. -add_link_options("LINKER:--build-id=none") +if (NOT APPLE) + add_link_options("LINKER:--build-id=none") +endif() # Fixes warning ld: warning: ignoring duplicate libraries on Mac and Windows. if (POLICY CMP0156)