File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -305,14 +305,15 @@ mod macos {
305305 }
306306 // We have to explicitly support homebrew since the HDF5 bottle isn't
307307 // packaged with pkg-config metadata.
308- let ( v18, v110, v112) = if let Some ( version) = config. version {
308+ let ( v18, v110, v112, v114 ) = if let Some ( version) = config. version {
309309 (
310310 version. major == 1 && version. minor == 8 ,
311311 version. major == 1 && version. minor == 10 ,
312312 version. major == 1 && version. minor == 12 ,
313+ version. major == 1 && version. minor == 14 ,
313314 )
314315 } else {
315- ( false , false , false )
316+ ( false , false , false , false )
316317 } ;
317318 println ! (
318319 "Attempting to find HDF5 via Homebrew ({})..." ,
@@ -322,10 +323,19 @@ mod macos {
322323 "1.10.*"
323324 } else if v112 {
324325 "1.12.*"
326+ } else if v114 {
327+ "1.14.*"
325328 } else {
326329 "any version"
327330 }
328331 ) ;
332+ if !( v18 || v110 || v112) {
333+ if let Some ( out) = run_command ( "brew" , & [ "--prefix" , "hdf5@1.14" ] ) {
334+ if is_root_dir ( & out) {
335+ config. inc_dir = Some ( PathBuf :: from ( out) . join ( "include" ) ) ;
336+ }
337+ }
338+ }
329339 if !( v18 || v110) {
330340 if let Some ( out) = run_command ( "brew" , & [ "--prefix" , "hdf5@1.12" ] ) {
331341 if is_root_dir ( & out) {
You can’t perform that action at this time.
0 commit comments