From e313a9393b31be9481f837bd5a6704ed8058ec61 Mon Sep 17 00:00:00 2001 From: danemadsen Date: Wed, 7 Aug 2024 21:13:40 +1000 Subject: [PATCH] linker --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a6560d..c39b621 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,12 @@ add_library( src/voice.cpp ) +if(COMPILER_SUPPORTS_FUSE_LD_GOLD) + target_link_options(babylon PRIVATE "--build-id=none") +else() + message(WARNING "The linker does not support --build-id=none. Skipping this flag for target babylon.") +endif() + # Set the output directory for the shared library set_target_properties( babylon