Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Defined _XOPEN_SOURCE if mac
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 10 Feb 2010 13:25:29 +0000 (13:25 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 10 Feb 2010 13:25:29 +0000 (13:25 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7075 48e7efb5-ca39-0410-a469-dd3cf9ba447f

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)