Skip to content

Commit

Permalink
try to solve "could not create compact unwind" linker warnings on mac…
Browse files Browse the repository at this point in the history
…OS - fixed again...
  • Loading branch information
slayoo committed Jun 18, 2022
1 parent f42b9fa commit 54ce3be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ############################################################################

Expand All @@ -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 ######################################################################################

Expand Down

0 comments on commit 54ce3be

Please sign in to comment.