Skip to content

Commit 62d8875

Browse files
committed
Test declaring SYCL headers as system to supress the warning there
1 parent 853a7ce commit 62d8875

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dpnp/backend/extensions/blas/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,16 @@ set_target_properties(
6565

6666
target_include_directories(
6767
${python_module_name}
68-
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../
68+
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../ ${CMAKE_CURRENT_SOURCE_DIR}/../common
6969
)
70+
71+
# treat below headers as system to suppress the warnings there during the build
7072
target_include_directories(
7173
${python_module_name}
72-
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../common
74+
SYSTEM
75+
PRIVATE ${SYCL_INCLUDE_DIR} ${Dpctl_INCLUDE_DIRS} ${Dpctl_TENSOR_INCLUDE_DIR}
7376
)
7477

75-
target_include_directories(${python_module_name} PUBLIC ${Dpctl_INCLUDE_DIRS})
76-
target_include_directories(${python_module_name} PUBLIC ${Dpctl_TENSOR_INCLUDE_DIR})
77-
7878
if(WIN32)
7979
target_compile_options(
8080
${python_module_name}

0 commit comments

Comments
 (0)