Skip to content

Commit

Permalink
Adding static Iceoryx libraries to library link path.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmartin82 committed Apr 19, 2024
1 parent c6bf261 commit bdd5338
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ fn main() {
.build();

let iceoryx_install_path = iceoryx.as_os_str();
let iceoryx_lib = iceoryx.join("lib");

// Add iceoryx lib to link
println!("cargo:rustc-link-search=native={}", iceoryx_lib.display());
println!("cargo:rustc-link-lib=static=iceoryx_binding_c");
println!("cargo:rustc-link-lib=static=iceoryx_hoofs");
println!("cargo:rustc-link-lib=static=iceoryx_posh");
println!("cargo:rustc-link-lib=static=iceoryx_platform");

cyclonedds = cyclonedds
.env("iceoryx_hoofs_DIR", iceoryx_install_path)
Expand Down

0 comments on commit bdd5338

Please sign in to comment.