Is it possible to get a whole information about target properties/include dirs and all dependencies (include transitive) using the brand new cmake-file-api(7)?
Hello everyone. I try to determine why some transitive INTERFACE_DIRECTORIES doesn’t inherited by some targets in project with large amount of CMake targets and relatively tangled dependencies graph.
While reading the cmake-file-api(7) manual, I found that the build/.cmake/api/v1/query/codemodel-v2
has some useful info, but it doesn’t show the whole props graph.
As that I found that there are the target-<name>-<hash>.json
files with relevant, but insufficient to determine which part of deps graph broke the transitiveness:
"includes" :
[
{
"backtrace" : 5,
"path" : "/home/user/proj/include"
},
{
"backtrace" : 5,
"path" : "/home/afails/proj/build/include"
},
{
"backtrace" : 5,
"path" : "/home/afails/proj/src/core/include"
}
],
N.B. I also thought about the --graphviz
parameter but it doesn’t provides that information