Mercurial > hg > freeDiameter
changeset 857:cea8e81967eb
Generalize flags for CXX in case an extension such as _sample uses C++
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Sun, 21 Oct 2012 22:07:55 +0200 |
parents | c0f92000c42a |
children | 3483d83140ef |
files | CMakeLists.txt |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/CMakeLists.txt Sun Oct 21 19:10:14 2012 +0200 +++ b/CMakeLists.txt Sun Oct 21 22:07:55 2012 +0200 @@ -1,7 +1,7 @@ # This file is the source for generating the Makefile for the project, using cmake tool (cmake.org) -# Name of the project, and language -PROJECT("freeDiameter" C) +# Name of the project +PROJECT("freeDiameter") # Informations to display in daemon's help SET(FD_PROJECT_NAME freeDiameter) @@ -76,7 +76,8 @@ # For Darwin systems IF(APPLE) - SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "${CMAKE_SHARED_MODULE_CREATE_C_FLAGS} -flat_namespace -undefined suppress") + SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "${CMAKE_SHARED_MODULE_CREATE_C_FLAGS} -flat_namespace -undefined dynamic_lookup") + SET(CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS "${CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS} -flat_namespace -undefined dynamic_lookup") ENDIF(APPLE) # Location for the include files