mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Correct enable_gens* in Cmake
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com> Related-To: NEO-6245
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6ccbb55e98
commit
bbd11a7448
@@ -99,16 +99,14 @@ macro(macro_for_each_gen)
|
||||
list(APPEND ${GEN_TYPE}_SRC_LINK_BASE ${SRC_FILE})
|
||||
endif()
|
||||
|
||||
foreach(SRC_IT "enable_")
|
||||
set(SRC_FILE ${CORE_GENX_PREFIX}${BRANCH_DIR}${SRC_IT}${GEN_TYPE_LOWER}${_BRANCH_FILENAME_SUFFIX}.cpp)
|
||||
if(EXISTS ${SRC_FILE})
|
||||
list(APPEND ${GEN_TYPE}_SRC_LINK_BASE ${SRC_FILE})
|
||||
endif()
|
||||
set(SRC_FILE ${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR}${GEN_TYPE_LOWER}/${SRC_IT}${GEN_TYPE_LOWER}.cpp)
|
||||
if(EXISTS ${SRC_FILE})
|
||||
list(APPEND ${GEN_TYPE}_SRC_LINK_BASE ${SRC_FILE})
|
||||
endif()
|
||||
endforeach()
|
||||
set(SRC_FILE ${CORE_GENX_PREFIX}${BRANCH_DIR}enable_${GEN_TYPE_LOWER}.cpp)
|
||||
if(EXISTS ${SRC_FILE})
|
||||
list(APPEND ${GEN_TYPE}_SRC_LINK_BASE ${SRC_FILE})
|
||||
endif()
|
||||
set(SRC_FILE ${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR}${GEN_TYPE_LOWER}/enable_${GEN_TYPE_LOWER}.cpp)
|
||||
if(EXISTS ${SRC_FILE})
|
||||
list(APPEND ${GEN_TYPE}_SRC_LINK_BASE ${SRC_FILE})
|
||||
endif()
|
||||
|
||||
set(SRC_FILE "${CORE_GENX_PREFIX}/os_agnostic_hw_info_config_${GEN_TYPE_LOWER}.inl")
|
||||
if(EXISTS ${SRC_FILE})
|
||||
|
||||
Reference in New Issue
Block a user