bazel-contrib / rules_foreign_cc

Build rules for interfacing with "foreign" (non-Bazel) build systems (CMake, configure-make, GNU Make, boost, ninja, Meson)
https://bazel-contrib.github.io/rules_foreign_cc
Apache License 2.0
679 stars 249 forks source link

fix: keep original header file layout when symlink into ext_include_dir #1266

Open gulu-goolu opened 3 months ago

gulu-goolu commented 3 months ago

this pr attempt to fix when building a cmake target which depends a cc_library target, the @rules_foreign_cc doesn't keep original header file layout of cc_library. for example, if a cmake target depends @com_google_absl//absl/base,current version of @rules_foreign_c will create symlinks of like $EXT_BUILD_DEPS/include/attributes.h, instead of $EXT_BUILDS_DEPS/include/absl/base/attributes.h