Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
8dcbf2cb
Commit
8dcbf2cb
authored
Oct 22, 2015
by
PRUVOST Florent
Browse files
fix a bug at build for shared libs on Mac OS X
parent
293b7e87
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
8dcbf2cb
...
...
@@ -747,6 +747,11 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
list
(
REMOVE_DUPLICATES 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)
# ------------------------------------------------------------------
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment