Mercurial > hg > freeDiameter
comparison CMakeLists.txt @ 845:5c4cf8d15ef0 1.1.5-rc1
Well this time, I hope, should be the last fix to enable compilation on Darwin systems...
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Tue, 16 Oct 2012 21:10:14 +0200 |
parents | 84bdbd87cbd5 |
children | cea8e81967eb |
comparison
equal
deleted
inserted
replaced
844:9b208543ba7f | 845:5c4cf8d15ef0 |
---|---|
72 # how to do the check with cmake??? | 72 # how to do the check with cmake??? |
73 | 73 |
74 # Add this to workaround an apparent bug in FreeBSD cmake (already defined in Linux) | 74 # Add this to workaround an apparent bug in FreeBSD cmake (already defined in Linux) |
75 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-rdynamic") | 75 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-rdynamic") |
76 | 76 |
77 # For Darwin systems | |
78 IF(APPLE) | |
79 SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "${CMAKE_SHARED_MODULE_CREATE_C_FLAGS} -flat_namespace -undefined suppress") | |
80 ENDIF(APPLE) | |
81 | |
77 # Location for the include files | 82 # Location for the include files |
78 INCLUDE_DIRECTORIES(include) | 83 INCLUDE_DIRECTORIES(include) |
79 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/include) | 84 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/include) |
80 SUBDIRS(include/freeDiameter) | 85 SUBDIRS(include/freeDiameter) |
81 | 86 |