Skip to content

Commit 54ce3be

Browse files
committed
try to solve "could not create compact unwind" linker warnings on macOS - fixed again...
1 parent f42b9fa commit 54ce3be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,6 @@ add_dependencies(partmclib ${SUNDIALS_items})
120120
target_include_directories(partmclib PRIVATE ${SUNDIALS_SOURCE_DIR}/include)
121121
target_include_directories(partmclib PRIVATE ${CMAKE_BINARY_DIR}/include)
122122
target_link_libraries(partmclib PRIVATE ${SUNDIALS_items})
123-
if (APPLE)
124-
target_link_options(partmclib PRIVATE -Wl,-no_compact_unwind)
125-
endif()
126123

127124
### PYBIND11 & PyPartMC ############################################################################
128125

@@ -137,6 +134,9 @@ target_include_directories(PyPartMC PRIVATE
137134
)
138135
target_compile_definitions(PyPartMC PRIVATE VERSION_INFO=${VERSION_INFO})
139136
target_link_libraries(PyPartMC PRIVATE partmclib)
137+
if (APPLE)
138+
target_link_options(PyPartMC PRIVATE -Wl,-no_compact_unwind -Wl,-keep_dwarf_unwind)
139+
endif()
140140

141141
### pedantics ######################################################################################
142142

0 commit comments

Comments
 (0)