Skip to content

Commit af5161b

Browse files
committed
[SYCL] Revert use of build directory to install
The use of build directory as source for install causing duplication of level_zero headers.
1 parent 22251ef commit af5161b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sycl/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ add_custom_command(
123123
COMMAND ${CMAKE_COMMAND} -E copy_directory ${sycl_inc_dir}/CL ${SYCL_INCLUDE_BUILD_DIR}/sycl/CL
124124
COMMENT "Copying SYCL headers ...")
125125

126-
# Copy SYCL headers from build to install directory
127-
install(DIRECTORY "${SYCL_INCLUDE_BUILD_DIR}/sycl" DESTINATION ${SYCL_INCLUDE_DIR} COMPONENT sycl-headers)
128-
install(FILES "${version_header}" DESTINATION ${SYCL_INCLUDE_DIR}/sycl/CL/sycl COMPONENT sycl-headers)
126+
# Copy SYCL headers from source to install directory
127+
install(DIRECTORY "${sycl_inc_dir}/sycl" DESTINATION ${SYCL_INCLUDE_DIR} COMPONENT sycl-headers)
128+
install(DIRECTORY "${sycl_inc_dir}/CL" DESTINATION ${SYCL_INCLUDE_DIR}/sycl COMPONENT sycl-headers)
129129

130130
set(SYCL_RT_LIBS sycl)
131131
if (MSVC)

0 commit comments

Comments
 (0)