From f42b9faf9c56c7e9390d6662e7a28daef9b25999 Mon Sep 17 00:00:00 2001 From: Sylwester Arabas Date: Fri, 17 Jun 2022 21:43:44 -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 2f5e7f94..f25695cc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -120,6 +120,9 @@ 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 ############################################################################ @@ -134,9 +137,6 @@ 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) -endif() ### pedantics ######################################################################################