invoke cmake check with run_always

Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
onur-ozkan 2024-09-23 19:47:12 +03:00
parent 37ce36f130
commit f6d3cd7345

View File

@ -355,7 +355,8 @@ than building it.
// There are three builds of cmake on windows: MSVC, MinGW, and
// Cygwin. The Cygwin build does not have generators for Visual
// Studio, so detect that here and error.
let out = command("cmake").arg("--help").run_capture_stdout(build).stdout();
let out =
command("cmake").arg("--help").run_always().run_capture_stdout(build).stdout();
if !out.contains("Visual Studio") {
panic!(
"