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 a8ababc commit f42b9fa
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,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 ############################################################################

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

Expand Down

0 comments on commit f42b9fa

Please sign in to comment.