Skip to content

Commit 91c812e

Browse files
authored
[PROTON] Skip warnings caused by legacy clang compilers (#5778)
`error: unknown warning group '-Wreserved-macro-identifier'`, this flag was not defined in `clang-10`
1 parent fb56ae3 commit 91c812e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

third_party/proton/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@ function(add_proton_library name)
2626

2727
target_link_libraries(${name} PRIVATE Python3::Module pybind11::headers)
2828

29+
# Use system to skip warnings caused by legacy clang compilers
30+
target_include_directories(${name}
31+
SYSTEM PRIVATE
32+
"${ROCTRACER_INCLUDE_DIR}"
33+
)
34+
2935
target_include_directories(${name}
3036
PRIVATE
3137
"${CUPTI_INCLUDE_DIR}"
32-
"${ROCTRACER_INCLUDE_DIR}"
3338
"${JSON_INCLUDE_DIR}"
3439
"${PROTON_SRC_DIR}/include"
3540
)

0 commit comments

Comments
 (0)