Hi, I'm just starting to figure out how to use Bazel to pull in external dependencies with their own CMake projects, and I ran into a problem with the directory structure of header files.
I'm trying to build a library which calls this external project:
and here is my minimal example:
which I've adapted from the documentation at:
When I run:
bazel build :example
I get the following error:
bazel-out/k8-fastbuild/bin/polyscope/include/polyscope/persistent_value.h:10:10: fatal error: polyscope/render/color_maps.h: No such file or directory
10 | #include "polyscope/render/color_maps.h"
It appears that the original directory structure of the includes contained a subdirectory called "render", however, something about rules_foreign_cc copied all the headers into a flat directory, so I think now any program using these header files is unable to find the subdirectory referenced in the original structure of the external lib.
Is this a problem with the way the cmake files are configured, or is there an optional flag I need to pass in rules_foreign_cc (something like "preserve_include_directory_structure=1") ?