Comment #12 on issue 1035 by firewave: Transitive includes not analyzed?
https://github.com/include-what-you-use/include-what-you-use/issues/1035
Going through the issues in detail (more comments to follow):
```
(/__w/cppcheck/cppcheck/cmake.output/cli/cli_objs_verify_interface_header_sets/cmdlineparser.h.cxx has correct #includes/fwd-decls)
In file included from /__w/cppcheck/cppcheck/cmake.output/cli/cli_objs_verify_interface_header_sets/cppcheckexecutor.h.cxx:1:
/__w/cppcheck/cppcheck/cli/cppcheckexecutor.h:22:10: fatal error: 'color.h' file not found
#include "color.h"
```
```json
{
"directory": "/__w/cppcheck/cppcheck/cmake.output/cli",
"command": "/usr/bin/c++ -DCHECK_INTERNAL -DFILESDIR=\\\"/usr/local/share/Cppcheck\\\" -DHAVE_RULES -DTIXML_USE_STL -I/__w/cppcheck/cppcheck/cmake.output/cli -I/__w/cppcheck/cppcheck/cli -x c++ -O3 -DNDEBUG -O2 -pedantic -Wall -Wextra -Wcast-qual -Wfloat-equal -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Wpacked -Wredundant-decls -Wundef -Wno-missing-field-initializers -Wno-missing-braces -Wno-sign-compare -Wno-multichar -pipe -Woverloaded-virtual -Wno-maybe-uninitialized -Wsuggest-attribute=noreturn -Wno-shadow -std=gnu++11 -o CMakeFiles/cli_objs_verify_interface_header_sets.dir/cli_objs_verify_interface_header_sets/cppcheckexecutor.h.cxx.o -c /__w/cppcheck/cppcheck/cmake.output/cli/cli_objs_verify_interface_header_sets/cppcheckexecutor.h.cxx",
"file": "/__w/cppcheck/cppcheck/cmake.output/cli/cli_objs_verify_interface_header_sets/cppcheckexecutor.h.cxx"
}
```
```
add_library(cli_objs OBJECT ${hdrs} ${srcs})
[...]
if (CMAKE_VERIFY_INTERFACE_HEADER_SETS)
target_sources(cli_objs PUBLIC FILE_SET HEADERS TYPE HEADERS FILES ${hdrs})
endif()
target_include_directories(cli_objs PRIVATE ${PROJECT_SOURCE_DIR}/lib/)
```
This can be "fixed" by changing `target_include_directories()` to `PUBLIC`:
```json
{
"directory": "/__w/cppcheck/cppcheck/cmake.output/cli",
"command": "/usr/bin/c++ -DCHECK_INTERNAL -DFILESDIR=\\\"/usr/local/share/Cppcheck\\\" -DHAVE_RULES -DTIXML_USE_STL -I/__w/cppcheck/cppcheck/cmake.output/cli -I/__w/cppcheck/cppcheck/cli -I/__w/cppcheck/cppcheck/lib -x c++ -O3 -DNDEBUG -O2 -pedantic -Wall -Wextra -Wcast-qual -Wfloat-equal -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Wpacked -Wredundant-decls -Wundef -Wno-missing-field-initializers -Wno-missing-braces -Wno-sign-compare -Wno-multichar -pipe -Woverloaded-virtual -Wno-maybe-uninitialized -Wsuggest-attribute=noreturn -Wno-shadow -std=gnu++11 -o CMakeFiles/cli_objs_verify_interface_header_sets.dir/cli_objs_verify_interface_header_sets/cppcheckexecutor.h.cxx.o -c /__w/cppcheck/cppcheck/cmake.output/cli/cli_objs_verify_interface_header_sets/cppcheckexecutor.h.cxx",
"file": "/__w/cppcheck/cppcheck/cmake.output/cli/cli_objs_verify_interface_header_sets/cppcheckexecutor.h.cxx"
}
```