Skip to content

Commit 6b67abd

Browse files
[SYCL][NFC] Disable sycl/sycl.hpp warning in unittests (#19310)
After #19279, `ninja check-sycl` produces hundreds of warning about including `sycl.hpp` without `-fsycl` flag." This PR disables those warnings for unittests.
1 parent 77181b3 commit 6b67abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/unittests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ foreach(flag_var
77
string(REGEX REPLACE "/MT" "/MD" ${flag_var} "${${flag_var}}")
88
endforeach()
99

10-
add_compile_definitions(SYCL2020_DISABLE_DEPRECATION_WARNINGS)
10+
add_compile_definitions(SYCL2020_DISABLE_DEPRECATION_WARNINGS SYCL_DISABLE_FSYCL_SYCLHPP_WARNING)
1111

1212
# suppress warnings which came from Google Test sources
1313
if (CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG)

0 commit comments

Comments
 (0)