File tree Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -118,17 +118,19 @@ configure_file("${feature_header}.in" "${feature_header}")
118
118
# TODO: detect and process remove header/directory case
119
119
file (GLOB_RECURSE HEADERS_IN_SYCL_DIR CONFIGURE_DEPENDS "${sycl_inc_dir} /sycl/*" )
120
120
file (GLOB_RECURSE HEADERS_IN_CL_DIR CONFIGURE_DEPENDS "${sycl_inc_dir} /CL/*" )
121
+ string (REPLACE "${sycl_inc_dir} " "${SYCL_INCLUDE_BUILD_DIR} "
122
+ OUT_HEADERS_IN_SYCL_DIR "${HEADERS_IN_SYCL_DIR} " )
123
+ string (REPLACE "${sycl_inc_dir} " "${SYCL_INCLUDE_BUILD_DIR} "
124
+ OUT_HEADERS_IN_CL_DIR "${HEADERS_IN_CL_DIR} " )
121
125
122
126
# Copy SYCL headers from sources to build directory
123
127
add_custom_target (sycl-headers
124
- DEPENDS ${SYCL_INCLUDE_BUILD_DIR} /sycl
125
- ${SYCL_INCLUDE_BUILD_DIR} /sycl/sycl.hpp
126
- ${SYCL_INCLUDE_BUILD_DIR} /sycl/CL )
128
+ DEPENDS ${OUT_HEADERS_IN_SYCL_DIR}
129
+ ${OUT_HEADERS_IN_CL_DIR} )
127
130
128
131
add_custom_command (
129
- OUTPUT ${SYCL_INCLUDE_BUILD_DIR} /sycl
130
- ${SYCL_INCLUDE_BUILD_DIR} /sycl/sycl.hpp
131
- ${SYCL_INCLUDE_BUILD_DIR} /sycl/CL
132
+ OUTPUT ${OUT_HEADERS_IN_SYCL_DIR}
133
+ ${OUT_HEADERS_IN_CL_DIR}
132
134
DEPENDS ${HEADERS_IN_SYCL_DIR}
133
135
${HEADERS_IN_CL_DIR}
134
136
COMMAND ${CMAKE_COMMAND} -E copy_directory ${sycl_inc_dir} /sycl ${SYCL_INCLUDE_BUILD_DIR} /sycl
Original file line number Diff line number Diff line change @@ -78,11 +78,13 @@ add_subdirectory(src)
78
78
79
79
if (LLVM_BINARY_DIR )
80
80
file (GLOB_RECURSE XPTI_HEADERS_LIST CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR} /include/xpti/*" )
81
+ string (REPLACE "${CMAKE_CURRENT_SOURCE_DIR} " "${LLVM_BINARY_DIR} "
82
+ XPTI_HEADERS_OUT_LIST "${XPTI_HEADERS_LIST} " )
81
83
add_custom_target (xpti-headers
82
- DEPENDS ${LLVM_BINARY_DIR} /include/xpti )
84
+ DEPENDS ${XPTI_HEADERS_OUT_LIST} )
83
85
84
86
add_custom_command (
85
- OUTPUT ${LLVM_BINARY_DIR} /include/xpti
87
+ OUTPUT ${XPTI_HEADERS_OUT_LIST}
86
88
DEPENDS ${XPTI_HEADERS_LIST}
87
89
COMMAND ${CMAKE_COMMAND} -E copy_directory
88
90
${CMAKE_CURRENT_SOURCE_DIR} /include/xpti
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ if (NOT DEFINED LLVM_EXTERNAL_XPTIFW_SOURCE_DIR)
38
38
endif ()
39
39
endif ()
40
40
41
- add_executable (XPTIFWUnitTests
41
+ add_executable (XPTIFWUnitTests EXCLUDE_FROM_ALL
42
42
xpti_api_tests.cpp
43
43
xpti_correctness_tests.cpp
44
44
)
You can’t perform that action at this time.
0 commit comments