aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2013-07-20 10:47:34 +0200
committerStefan Bühler <stbuehler@web.de>2013-07-20 10:47:34 +0200
commitef2ff3f59969ef7b7b228ba6f3a0b716554b2586 (patch)
tree56fe2ba2007e16d27148dc3302b68cbf9057de10 /cmake
parent64c505e3c7725b18bc2ee88e1beccf518253de5f (diff)
downloadfcgi-cgi-ef2ff3f59969ef7b7b228ba6f3a0b716554b2586.tar.gz
fcgi-cgi-ef2ff3f59969ef7b7b228ba6f3a0b716554b2586.zip
[cmake] fix macros, glib2 including and libev cflags
Diffstat (limited to 'cmake')
-rw-r--r--cmake/AddTargetProperties.cmake15
1 files changed, 7 insertions, 8 deletions
diff --git a/cmake/AddTargetProperties.cmake b/cmake/AddTargetProperties.cmake
index cee7276..17ee774 100644
--- a/cmake/AddTargetProperties.cmake
+++ b/cmake/AddTargetProperties.cmake
@@ -1,14 +1,13 @@
-MACRO(ADD_TARGET_PROPERTIES _target _name _properties)
- SET(_properties ${ARGV})
- LIST(REMOVE_AT _properties 0)
- LIST(REMOVE_AT _properties 0)
+MACRO(ADD_TARGET_PROPERTIES _target _name)
+ SET(_properties)
+ FOREACH(_prop ${ARGN})
+ SET(_properties "${_properties} ${_prop}")
+ ENDFOREACH(_prop)
GET_TARGET_PROPERTY(_old_properties ${_target} ${_name})
- #MESSAGE("adding property to ${_target} ${_name}: ${_properties}")
+ MESSAGE(STATUS "adding property to ${_target} ${_name}:" ${_properties})
IF(NOT _old_properties)
# in case it's NOTFOUND
SET(_old_properties)
- ELSE(NOT _old_properties)
- SET(_old_properties "${_old_properties} ")
ENDIF(NOT _old_properties)
- SET_TARGET_PROPERTIES(${_target} PROPERTIES ${_name} "${_old_properties}${_properties}")
+ SET_TARGET_PROPERTIES(${_target} PROPERTIES ${_name} "${_old_properties} ${_properties}")
ENDMACRO(ADD_TARGET_PROPERTIES)