mirror of
https://github.com/intel/compute-runtime.git
synced 2025-11-10 05:49:51 +08:00
CMake: add IGDRCL_SOURCE_DIR to prefixes in create_project_source_tree macro
Change-Id: I0fceeab0b42fe58ec92fbaaa4b4704c0b2344647 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
fab1601394
commit
e4ed7e7f12
@@ -29,13 +29,14 @@ endmacro()
|
||||
|
||||
macro(create_project_source_tree target)
|
||||
if(MSVC)
|
||||
set(prefixes ${CMAKE_CURRENT_SOURCE_DIR} ${ARGN})
|
||||
set(prefixes ${CMAKE_CURRENT_SOURCE_DIR} ${ARGN} ${IGDRCL_SOURCE_DIR})
|
||||
get_target_property(source_list ${target} SOURCES)
|
||||
foreach(source_file ${source_list})
|
||||
if(NOT ${source_file} MATCHES "\<*\>")
|
||||
set(source_file_relative ${source_file})
|
||||
string(TOLOWER ${source_file} source_file_relative)
|
||||
foreach(prefix ${prefixes})
|
||||
if(source_file_relative)
|
||||
string(TOLOWER ${prefix} prefix)
|
||||
string(REPLACE "${prefix}" "" source_file_relative ${source_file_relative})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
Reference in New Issue
Block a user