comparison Resources/CMake/Compiler.cmake @ 932:330aa746bd29

integration mac -> default
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 24 Jun 2014 17:03:52 +0200
parents 27d256e0b458
children 8811abd6aec9
comparison
equal deleted inserted replaced
929:401a8273fd71 932:330aa746bd29
68 if (${CMAKE_COMPILER_IS_GNUCXX}) 68 if (${CMAKE_COMPILER_IS_GNUCXX})
69 # This is a patch for MinGW64 69 # This is a patch for MinGW64
70 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--allow-multiple-definition -static-libgcc -static-libstdc++") 70 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--allow-multiple-definition -static-libgcc -static-libstdc++")
71 endif() 71 endif()
72 72
73 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
74 add_definitions(
75 -D_XOPEN_SOURCE=1
76 )
77 link_libraries(iconv)
78
73 endif() 79 endif()
74 80
75 81
76 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") 82 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
77 CHECK_INCLUDE_FILES(rpc.h HAVE_UUID_H) 83 CHECK_INCLUDE_FILES(rpc.h HAVE_UUID_H)