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 2abb6ea commit d46b8b2Copy full SHA for d46b8b2
build.rs
@@ -1,10 +1,10 @@
1
-use cmake::Config;
2
use std::env;
3
use std::path::PathBuf;
4
+use cmake::Config;
5
+
6
fn main() {
7
let dst = Config::new("HiGHS")
- .define("OPENMP", "ON")
8
.define("FAST_BUILD", "ON")
9
.define("SHARED", "OFF")
10
.build();
@@ -45,6 +45,8 @@ fn main() {
45
println!("cargo:rustc-link-search=native={}/lib", dst.display());
46
println!("cargo:rustc-link-lib=static=highs");
47
println!("cargo:rustc-link-lib=dylib=stdc++");
48
- println!("cargo:rustc-link-lib=dylib=gomp");
+ if !cfg!(target_os = "windows") {
49
+ println!("cargo:rustc-link-lib=dylib=gomp");
50
+ }
51
println!("cargo:rerun-if-changed=HiGHS/src/interfaces/highs_c_api.h");
52
}
0 commit comments