Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 8dcbf2cb authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

fix a bug at build for shared libs on Mac OS X

parent 293b7e87
No related branches found
No related tags found
No related merge requests found
...@@ -747,6 +747,11 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/") ...@@ -747,6 +747,11 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
list(REMOVE_DUPLICATES CMAKE_EXE_LINKER_FLAGS) list(REMOVE_DUPLICATES CMAKE_EXE_LINKER_FLAGS)
string(REPLACE ";" " " CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}") string(REPLACE ";" " " CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}")
# Fix a problem on Mac OS X when building shared libraries
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_SHARED_LINKER_FLAGS "-undefined dynamic_lookup")
endif()
message("CMAKE_SYSTEM_NAME: ${CMAKE_SYSTEM_NAME}")
# Add define for Fortran Mangling (should be defined somewhere else) # Add define for Fortran Mangling (should be defined somewhere else)
# ------------------------------------------------------------------ # ------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment