Merge pull request #132 from Des-Nerger/master

Add pkg-config as fallback for MagickCore-config
This commit is contained in:
Nathan Fiedler
2024-08-26 21:44:35 -07:00
committed by GitHub

View File

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