From 54ce3be70460132b74c4b3889efee24d0a44efe8 Mon Sep 17 00:00:00 2001 From: Sylwester Arabas Date: Fri, 17 Jun 2022 21:54:20 -0500 Subject: [PATCH] try to solve "could not create compact unwind" linker warnings on macOS - fixed again... --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f25695cc..080365ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -120,9 +120,6 @@ add_dependencies(partmclib ${SUNDIALS_items}) target_include_directories(partmclib PRIVATE ${SUNDIALS_SOURCE_DIR}/include) target_include_directories(partmclib PRIVATE ${CMAKE_BINARY_DIR}/include) target_link_libraries(partmclib PRIVATE ${SUNDIALS_items}) -if (APPLE) - target_link_options(partmclib PRIVATE -Wl,-no_compact_unwind) -endif() ### PYBIND11 & PyPartMC ############################################################################ @@ -137,6 +134,9 @@ target_include_directories(PyPartMC PRIVATE ) target_compile_definitions(PyPartMC PRIVATE VERSION_INFO=${VERSION_INFO}) target_link_libraries(PyPartMC PRIVATE partmclib) +if (APPLE) + target_link_options(PyPartMC PRIVATE -Wl,-no_compact_unwind -Wl,-keep_dwarf_unwind) +endif() ### pedantics ######################################################################################