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 d6fd048 commit 9baee48Copy full SHA for 9baee48
examples/graph/build.rs
@@ -19,7 +19,17 @@ extern crate cpp_build;
19
20
fn main() {
21
let qt_include_path = std::env::var("DEP_QT_INCLUDE_PATH").unwrap();
22
- cpp_build::Config::new()
+ let qt_library_path = std::env::var("DEP_QT_LIBRARY_PATH").unwrap();
23
+
24
+ #[allow(unused_mut)]
25
+ let mut config = cpp_build::Config::new();
26
27
+ if cfg!(target_os = "macos") {
28
+ config.flag("-F");
29
+ config.flag(&qt_library_path);
30
+ }
31
32
+ config
33
.include(&qt_include_path)
34
.include(format!("{}/QtQuick", qt_include_path))
35
.include(format!("{}/QtCore", qt_include_path))
0 commit comments