You can mark the containing directory of the header files as system include. Usually compilers do not complain about those (gcc, clang, MSVC).
Either using SYSTEM in
target_include_directories(<target> [SYSTEM] [AFTER|BEFORE]
<INTERFACE|PUBLIC|PRIVATE> [items1...]
[<INTERFACE|PUBLIC|PRIVATE> [items2...] ...])
or
set_target_properties(xxxDepXxx PROPERTIES INTERFACE_SYSTEM_INCLUDE_DIRECTORIES $<TARGET_PROPERTY:xxxDepXxx,INTERFACE_INCLUDE_DIRECTORIES>)
See more info on this so question:
How to suppress Clang warnings in third-party library header file in CMakeLists.txt file?