mirror of
https://github.com/intel/compute-runtime.git
synced 2025-11-10 05:49:51 +08:00
Add cmake macro to append sources from properties
Change-Id: I06771c56ebca2e7a0dc5b65d6ea53aca95a70797 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
4b0d1c93ea
commit
bccfa1df38
@@ -94,3 +94,11 @@ macro(get_family_name_with_type gen_type platform_type)
|
||||
string(TOLOWER ${platform_type} platform_type_lower)
|
||||
set(family_name_with_type ${gen_type_capitalized}${platform_type_lower})
|
||||
endmacro()
|
||||
|
||||
|
||||
macro(append_sources_from_properties list_name)
|
||||
foreach(name ${ARGN})
|
||||
get_property(${name} GLOBAL PROPERTY ${name})
|
||||
list(APPEND ${list_name} ${${name}})
|
||||
endforeach()
|
||||
endmacro()
|
||||
|
||||
Reference in New Issue
Block a user