Mercurial > hg > orthanc
diff Resources/CMake/Compiler.cmake @ 918:ac8f68cbdbb6 mac
build cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 24 Feb 2014 16:09:06 +0100 |
parents | ec2c2411d4db |
children | 37aec47f49f0 |
line wrap: on
line diff
--- a/Resources/CMake/Compiler.cmake Mon Feb 24 15:10:30 2014 +0100 +++ b/Resources/CMake/Compiler.cmake Mon Feb 24 16:09:06 2014 +0100 @@ -69,6 +69,11 @@ SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--allow-multiple-definition -static-libgcc -static-libstdc++") endif() +elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") + add_definitions( + -D_XOPEN_SOURCE=1 + ) + endif()