aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2013-10-02 18:43:47 +0200
committerStefan Bühler <stbuehler@web.de>2013-10-02 18:43:47 +0200
commitc91f0380ae898b08a30fff66d85bccd8c95e7f11 (patch)
tree364e34e3030e6468df96562b8d134c39dacc607d /cmake
downloadscgi-cgi-c91f0380ae898b08a30fff66d85bccd8c95e7f11.tar.gz
scgi-cgi-c91f0380ae898b08a30fff66d85bccd8c95e7f11.zip
initial commit
Diffstat (limited to 'cmake')
-rw-r--r--cmake/AddTargetProperties.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/cmake/AddTargetProperties.cmake b/cmake/AddTargetProperties.cmake
new file mode 100644
index 0000000..17ee774
--- /dev/null
+++ b/cmake/AddTargetProperties.cmake
@@ -0,0 +1,13 @@
+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(STATUS "adding property to ${_target} ${_name}:" ${_properties})
+ IF(NOT _old_properties)
+ # in case it's NOTFOUND
+ SET(_old_properties)
+ ENDIF(NOT _old_properties)
+ SET_TARGET_PROPERTIES(${_target} PROPERTIES ${_name} "${_old_properties} ${_properties}")
+ENDMACRO(ADD_TARGET_PROPERTIES)