Skip to content

Commit

Permalink
fix(server): 🐛 Fix macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
zmerp committed Oct 14, 2023
1 parent b75503d commit 15cf60a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions alvr/server/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,13 @@ fn main() {
.write_to_file(out_dir.join("bindings.rs"))
.unwrap();

println!(
"cargo:rustc-link-search=native={}",
cpp_dir.join("openvr/lib").to_string_lossy()
);
println!("cargo:rustc-link-lib=openvr_api");
if platform_name != "macos" {
println!(
"cargo:rustc-link-search=native={}",
cpp_dir.join("openvr/lib").to_string_lossy()
);
println!("cargo:rustc-link-lib=openvr_api");
}

#[cfg(target_os = "linux")]
{
Expand Down

0 comments on commit 15cf60a

Please sign in to comment.