how can i make out put of cmake to make using foreign__cc in bazel

48 Views Asked by At

we want to run cmake . && make, I currently do

load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake", "make")

cmake(
    name = "abc-lib",
    generate_args = ["-DBUILD_TESTS=OFF"],
    lib_source = "@xxx//:all_srcs",
)

make(
    name = "abc",
    lib_source = ":bca-lib",
)

but it does not seem to work, any suggestions?

0

There are 0 best solutions below