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 df1c272 commit 27b7aebCopy full SHA for 27b7aeb
Cargo.toml
@@ -11,3 +11,7 @@ license = "LGPL-3.0"
11
[build-dependencies]
12
bindgen = "0.58"
13
cmake = "0.1"
14
+
15
+[features]
16
+default = ["testcpp"]
17
+testcpp = []
build.rs
@@ -7,6 +7,12 @@ fn main() {
7
let mut cmake = cmake::Config::new("third-party/libswiftnav/");
8
let out_dir = env::var("OUT_DIR").unwrap();
9
10
+ if !cfg!(feature = "testcpp") {
+ cmake
+ .define("libswiftnav_ENABLE_TESTS", "OFF")
+ .define("libswiftnav_ENABLE_TEST_LIBS", "OFF");
+ }
cmake
.profile("Release")
18
.define("CMAKE_INSTALL_PREFIX", out_dir);
0 commit comments