Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Defined _XOPEN_SOURCE if mac
[simgrid.git] / buildtools / CPACK / src / CMakeMakeExeLib.txt
index 6117a6e..2d550fb 100644 (file)
@@ -12,6 +12,10 @@ endif(supernovae)
 
 set(GRAS_DEP "pthread")
 set(SIMGRID_DEP "")
+if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
+       set(SIMGRID_DEP "-D_XOPEN_SOURCE")
+endif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
+
 
 if(pthread)
        if(with_context MATCHES pthread)