fcgi-cgi/cmake/AddTargetProperties.cmake

14 lines
520 B
CMake
Raw Permalink Normal View History

MACRO(ADD_TARGET_PROPERTIES _target _name)
SET(_properties)
FOREACH(_prop ${ARGN})
SET(_properties "${_properties} ${_prop}")
ENDFOREACH(_prop)
2013-07-20 08:30:48 +00:00
GET_TARGET_PROPERTY(_old_properties ${_target} ${_name})
MESSAGE(STATUS "adding property to ${_target} ${_name}:" ${_properties})
2013-07-20 08:30:48 +00:00
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}")
2013-07-20 08:30:48 +00:00
ENDMACRO(ADD_TARGET_PROPERTIES)