File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -197,9 +197,12 @@ fn main() {
197
197
println ! ( "cargo:FOUND=1" ) ;
198
198
println ! ( "cargo:COMPILE_FLAGS={}" , flags. join( ";" ) ) ;
199
199
200
- let macos_lib_search = if cargo_target_os == "macos" { "=framework" } else { "" } ;
200
+ let use_macos_frameworks =
201
+ cargo_target_os == "macos" && Path :: new ( & qt_library_path) . join ( "QtCore.framework" ) . exists ( ) ;
202
+
203
+ let macos_lib_search = if use_macos_frameworks { "=framework" } else { "" } ;
201
204
let vers_suffix =
202
- if cargo_target_os == "macos" { "" . to_string ( ) } else { qt_version. major . to_string ( ) } ;
205
+ if use_macos_frameworks { "" . to_string ( ) } else { qt_version. major . to_string ( ) } ;
203
206
204
207
// Windows debug suffix exclusively from MSVC land
205
208
let debug = std:: env:: var ( "DEBUG" ) . ok ( ) . map_or ( false , |s| s == "true" ) ;
You can’t perform that action at this time.
0 commit comments