comparison 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
comparison
equal deleted inserted replaced
917:312d04beb0a2 918:ac8f68cbdbb6
67 if (${CMAKE_COMPILER_IS_GNUCXX}) 67 if (${CMAKE_COMPILER_IS_GNUCXX})
68 # This is a patch for MinGW64 68 # This is a patch for MinGW64
69 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--allow-multiple-definition -static-libgcc -static-libstdc++") 69 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--allow-multiple-definition -static-libgcc -static-libstdc++")
70 endif() 70 endif()
71 71
72 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
73 add_definitions(
74 -D_XOPEN_SOURCE=1
75 )
76
72 endif() 77 endif()
73 78
74 79
75 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") 80 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
76 CHECK_INCLUDE_FILES(rpc.h HAVE_UUID_H) 81 CHECK_INCLUDE_FILES(rpc.h HAVE_UUID_H)