From 6359ef95937cddbc1b0ec3008a0d9a1dd55a0b32 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 18 Jan 2024 14:28:36 +0000 Subject: [PATCH] [Minor] Fix OSX build with backwards Issue: #4752 --- contrib/backward-cpp/BackwardConfig.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/backward-cpp/BackwardConfig.cmake b/contrib/backward-cpp/BackwardConfig.cmake index e04e3facb..4cec0be91 100644 --- a/contrib/backward-cpp/BackwardConfig.cmake +++ b/contrib/backward-cpp/BackwardConfig.cmake @@ -139,7 +139,9 @@ if (${STACK_DETAILS_AUTO_DETECT}) # If we attempt to link against static bfd, make sure to link its dependencies, too get_filename_component(bfd_lib_ext "${LIBBFD_LIBRARY}" EXT) if (bfd_lib_ext STREQUAL "${CMAKE_STATIC_LIBRARY_SUFFIX}") - list(APPEND _BACKWARD_LIBRARIES iberty z) + if (NOT APPLE) + list(APPEND _BACKWARD_LIBRARIES iberty z) + endif() endif() set(STACK_DETAILS_DW FALSE) -- 2.39.5