diff 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
line wrap: on
line diff
--- a/Resources/CMake/Compiler.cmake	Tue Jun 24 16:36:33 2014 +0200
+++ b/Resources/CMake/Compiler.cmake	Tue Jun 24 17:03:52 2014 +0200
@@ -70,6 +70,12 @@
     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
+    )
+  link_libraries(iconv)
+
 endif()