Skip to content

Commit 16ddc5b

Browse files
[SYCL][NFC] Disable aspect::image warning in sycl-ls build (#9349)
This commit defines SYCL_DISABLE_IMAGE_ASPECT_WARNING to avoid the warning produced from the use of aspect::image. Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 084c027 commit 16ddc5b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sycl/tools/sycl-ls/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ if (WIN32 AND "${build_type_lower}" MATCHES "debug")
88
set(sycl_lib sycld)
99
endif()
1010

11+
# Disable aspect::image warning.
12+
target_compile_definitions(sycl-ls PRIVATE SYCL_DISABLE_IMAGE_ASPECT_WARNING)
13+
1114
target_link_libraries(sycl-ls
1215
PRIVATE
1316
${sycl_lib}

0 commit comments

Comments
 (0)