Skip to content

Commit 63edbcf

Browse files
committed
Conditionally add hw_cmds_generated_patched.h file to list of header files
Change-Id: I0c38c9d40dd3745a223a2cdc8198c05d2eeef757
1 parent 01c1df3 commit 63edbcf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

runtime/enable_gens.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ macro(macro_for_each_gen)
8787
foreach(SRC_IT ${RUNTIME_SRCS_GENX_H_BASE})
8888
list(APPEND RUNTIME_SRCS_${GEN_TYPE}_H_BASE ${GENX_PREFIX}/${SRC_IT})
8989
endforeach()
90+
if(EXISTS "${GENX_PREFIX}/hw_cmds_generated_patched.h")
91+
list(APPEND RUNTIME_SRCS_${GEN_TYPE}_H_BASE "${GENX_PREFIX}/hw_cmds_generated_patched.h")
92+
endif()
9093

9194
foreach(OS_IT "BASE" "WINDOWS" "LINUX")
9295
foreach(SRC_IT ${RUNTIME_SRCS_GENX_CPP_${OS_IT}})

0 commit comments

Comments
 (0)