mirror of
https://github.com/cosmo-sims/MUSIC.git
synced 2024-09-19 17:03:46 +02:00
fixed linking problems on recent MacOS versions
This commit is contained in:
parent
420fe7c627
commit
50dd5c40df
1 changed files with 10 additions and 0 deletions
|
@ -214,3 +214,13 @@ if(ENABLE_CLASS)
|
||||||
endif()
|
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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue