Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Release mode by default to mask unstable tests to end users
[simgrid.git] / buildtools / Cmake / Flags.cmake
index e6e97fd..8bd0b59 100644 (file)
@@ -28,6 +28,11 @@ if(WIN32)
        set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=i486")
 endif(WIN32)
 
+# Try to make Mac a bit more complient to open source standards
+if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
+       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_XOPEN_SOURCE")
+endif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
+
 if(enable_coverage)
        find_program(GCOV_PATH gcov)
        if(GCOV_PATH)