1
0
Fork 0
mirror of https://github.com/cosmo-sims/MUSIC.git synced 2024-09-16 13:33:46 +02:00

fixed linking problems on recent MacOS versions

This commit is contained in:
Oliver Hahn 2024-02-21 09:50:52 +01:00
parent 420fe7c627
commit 50dd5c40df

View file

@ -214,3 +214,13 @@ if(ENABLE_CLASS)
endif()
########################################################################################################################
########################################################################################################################
# CPU specifics
if(APPLE)
# prevent linking problems on recent MacOS, enable exceptions (disabled otherwise)
target_link_options(${PRGNAME} PRIVATE "-fexceptions" "-Wl,-no_warn_duplicate_libraries,-ld_classic" )
set(EXE_LINKER_FLAGS "${EXE_LINKER_FLAGS} -Wl,-keep_dwarf_unwind")
set(SHARED_LINKER_FLAGS "${SHARED_LINKER_FLAGS} -Wl,-keep_dwarf_unwind")
set(MODULE_LINKER_FLAGS "${MODULE_LINKER_FLAGS} -Wl,-keep_dwarf_unwind")
endif()