A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix SMPI on Mac.
[simgrid.git]
/
buildtools
/
Cmake
/
MakeExeLib.cmake
diff --git
a/buildtools/Cmake/MakeExeLib.cmake
b/buildtools/Cmake/MakeExeLib.cmake
index
2d2073d
..
54e1388
100644
(file)
--- a/
buildtools/Cmake/MakeExeLib.cmake
+++ b/
buildtools/Cmake/MakeExeLib.cmake
@@
-26,6
+26,9
@@
endif(enable_smpi)
set(GRAS_DEP "-lm -lpthread")
set(SIMGRID_DEP "-lm")
set(SMPI_DEP "")
set(GRAS_DEP "-lm -lpthread")
set(SIMGRID_DEP "-lm")
set(SMPI_DEP "")
+if(APPLE)
+ set(SMPI_DEP "-Wl,-U -Wl,_smpi_simulated_main")
+endif(APPLE)
if(HAVE_PCRE_LIB)
SET(SIMGRID_DEP "${SIMGRID_DEP} -lpcre")
if(HAVE_PCRE_LIB)
SET(SIMGRID_DEP "${SIMGRID_DEP} -lpcre")