We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2a1fca commit 40ad031Copy full SHA for 40ad031
build.rs
@@ -1,11 +1,17 @@
1
extern crate bindgen;
2
3
-use cmake::Config;
4
use std::env;
5
use std::path::PathBuf;
6
7
fn main() {
8
- let dst = Config::new("third-party/libswiftnav/").build();
+ let mut cmake = cmake::Config::new("third-party/libswiftnav/");
+ let out_dir = env::var("OUT_DIR").unwrap();
9
+
10
+ cmake
11
+ .profile("Release")
12
+ .define("CMAKE_INSTALL_PREFIX", out_dir);
13
14
+ let dst = cmake.build();
15
16
println!("cargo:rustc-link-search=native={}/lib/", dst.display());
17
println!("cargo:rustc-link-lib=static=swiftnav");
0 commit comments