rules_foreign_cc icon indicating copy to clipboard operation
rules_foreign_cc copied to clipboard

Build rules for interfacing with "foreign" (non-Bazel) build systems (CMake, configure-make, GNU Make, boost, ninja, Meson)

Results 208 rules_foreign_cc issues
Sort by recently updated
recently updated
newest added

When building libraries with dependencies, such as curl & OpenSSL, I've found this to be necessary. It would have been useful to me to have this documented.

**Environment** ` Windows 11, Microsoft Visual Studio 2022, bazel 7.1.1 ` **MODULE.bazel** ` bazel_dep(name = "rules_foreign_cc", version = "0.10.1") tools = use_extension("@rules_foreign_cc//foreign_cc:extensions.bzl", "tools") tools.cmake(version = "3.23.2") tools.ninja(version = "1.11.1") use_repo(...

In modern CMake, an export file(s) are created during the build. Dependent external targets use these files to find and configure the package by name. The location of the exported...

Trying to build examples. I get the error "no such package". How can I fix it? OS: Windows 10 MSYS2: ```bash $ Jay@PC /c/projects/other/rules_foreign_cc-0.10.1/rules_foreign_cc-0.10.1/examples bazel build //cmake_hello_world_lib/shared:libhello ERROR: no such...

Thanks for the help in advance. I have a `cmake` rule defined somewhere, which builds Iceoryx. The build results are some header files, some CMake files and some libraries, as...

Instead of only replacing symlinks of declared output files, now we need to replace symlinks of everything in the declared tree artifact. Without this, Bazel 7 would fail when it...

The [cmake build script](https://github.com/bazelbuild/rules_foreign_cc/tree/99d018f0592bd7de492cbc2fa5e44828aea1ef4c/foreign_cc/private/cmake_script.bzl) always overrides the cache value `CMAKE_RANLIB` with an empty string. This is, I assume, due to the [following snippet](https://github.com/bazelbuild/rules_foreign_cc/tree/99d018f0592bd7de492cbc2fa5e44828aea1ef4c/foreign_cc/private/cmake_script.bzl): ```python # However, if no CMAKE_RANLIB was...

I've noticed that all (transitive) dependencies of `rules_foreign_cc` rules tend to get compiled twice, due to [this code](https://github.com/bazelbuild/rules_foreign_cc/blob/86936d7b5b6022eba654fee1b0937915159e94ba/foreign_cc/private/framework.bzl#L517) in `cc_external_rule_impl` adding the dynamic libraries to the runfiles. I find this...

we do not support export of object files such as crti.o crtn.o and so on.these files are key outputs of glibc.

Dear all, I need you experts' help to use the rule cmake in a specific way. 1. The project to use rule cmake(), called XXXX, need a library called "libacl"....