check for presence of ninja in windows-msvc
@@ -77,7 +77,9 @@ pub fn build(manifest_dir: &Path, target_triple: &str, out_dir: &Path) {
dst.define("CFLTK_BUILD_SHARED", "ON");
}
- if cfg!(feature = "use-ninja") {
+ if cfg!(feature = "use-ninja")
+ || (target_triple.contains("windows-msvc") && utils::has_program("ninja"))
+ {
dst.generator("Ninja");
}
