Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the output lib directory to set an environment variable #1197

Open
t0ny-peng opened this issue Apr 19, 2024 · 0 comments
Open

How to get the output lib directory to set an environment variable #1197

t0ny-peng opened this issue Apr 19, 2024 · 0 comments

Comments

@t0ny-peng
Copy link

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 specified in the following code section.

In one of the rather strange test, I need to set LD_LIBRARY_PATH so that an executable can find the libraries built by @iceoryx//:iceoryx target. Can I get some advice how to query that information? Thanks!

cmake(
    name = "iceoryx",
    build_args = [
        "--target install",
        "-j $$(nproc)",
    ],
    cache_entries = {
      ...
    },
    copts = [
      ...
    ],
    lib_source = ":srcs",
    out_binaries = ["iox-roudi"],
    out_data_dirs = [
        "lib/cmake",
        "lib/pkgconfig",
        "etc",
    ],
    out_shared_libs = [
        "libiceoryx_binding_c.so",
        "libiceoryx_hoofs.so",
        "libiceoryx_platform.so",
        "libiceoryx_posh_config.so",
        "libiceoryx_posh_gateway.so",
        "libiceoryx_posh_roudi.so",
        "libiceoryx_posh.so",
    ],
    visibility = ["//visibility:public"],
    working_directory = "iceoryx_meta",
    deps = ["@acl"],
    tags = ["requires-network"],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant