summaryrefslogtreecommitdiff
path: root/src/lua/cmake/CustomMacros.cmake
blob: 9318ea4eb1cfbec4252ac80941bf9e6ff6366287 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

macro(add_target_properties _target _name)
	set(_properties)
	foreach(_prop ${ARGN})
		set(_properties "${_properties} ${_prop}")
	endforeach(_prop)
	get_target_property(_old_properties ${_target} ${_name})
	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)