Skip to content

Commit 639fe5c

Browse files
committed
try to solve "could not create compact unwind" linker warnings on macOS
1 parent 84019c2 commit 639fe5c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ macro(sundials_add_library target)
7575
target_include_directories(${target} PRIVATE ${SUNDIALS_SOURCE_DIR}/src/sundials)
7676
target_include_directories(${target} PRIVATE ${SUNDIALS_SOURCE_DIR}/include)
7777
target_include_directories(${target} PRIVATE ${CMAKE_BINARY_DIR}/include)
78+
if (APPLE)
79+
target_link_options(${target} PRIVATE -Wl,-no_compact_unwind)
80+
endif()
7881
endmacro()
7982

8083
function(print_error)

0 commit comments

Comments
 (0)