Using pkg-config rather than MagickCore-config, to work on FreeBSD

This commit is contained in:
2025-05-12 02:31:50 -04:00
parent 77211e9568
commit da465daa20

View File

@ -58,7 +58,7 @@ fn main() {
.arg("--cppflags") .arg("--cppflags")
.output() .output()
} else { } else {
Command::new("MagickCore-config").arg("--cppflags").output() Command::new("pkg-config").args(["--cflags", "--libs", "MagickCore"]).output()
}; };
if let Ok(ok_cppflags) = check_cppflags { if let Ok(ok_cppflags) = check_cppflags {
let cppflags = ok_cppflags.stdout; let cppflags = ok_cppflags.stdout;