rules_foreign_cc icon indicating copy to clipboard operation
rules_foreign_cc copied to clipboard

How to Reference Shared Library from cmake?

Open Ryang20718 opened this issue 2 years ago • 0 comments

Hi, if I’m trying to set an environment variable within cmake for rules_foreign_cc based on the output of another shared_lib generated by cmake, what would be the proper way to do so?

cmake( name = "lib", cache_entries = { "path_to_shared_lib": "<What do I put here to set path to libfake.so>" } )

cmake( name = "fake", ... out_shared_libs = [ "libfake.so", ], visibility = ["//visibility:public"], )

Ryang20718 avatar Aug 05 '23 01:08 Ryang20718