Skip to content

Commit b9324eb

Browse files
authored
[SYCL] Fix device aspect macro header CMake dependency (#17358)
Without this patch the header wasn't getting re-generated when the `.def` files are changed, which causes build failures on existing builds when new aspects are introduced.
1 parent 8e09ffa commit b9324eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ add_custom_command(
200200
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/source/device_aspect_macros_generator.py ${CMAKE_CURRENT_SOURCE_DIR}/include/sycl ${SYCL_INCLUDE_BUILD_DIR}/sycl
201201
OUTPUT ${SYCL_INCLUDE_BUILD_DIR}/sycl/device_aspect_macros.hpp
202202
COMMENT "Generating device_aspect_macros.hpp"
203+
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/include/sycl/info/aspects.def
204+
${CMAKE_CURRENT_SOURCE_DIR}/include/sycl/info/aspects_deprecated.def
203205
)
204206

205207
add_custom_target(sycl-device-aspect-macros-header

0 commit comments

Comments
 (0)