cmLocalNinjaGenerator: Propagate failures from batch file back to ninja

Fixes: #18676
This commit is contained in:
Mark O'Neill committed 2018-12-06 16:01:24 +00:00
1 parent 81bea69bd1
commit 2295040e85
1 file changed
+1 -1
+1 -1
View File
@@ -329,7 +329,7 @@ std::string cmLocalNinjaGenerator::WriteCommandScript(
// for the raw shell script.
cmSystemTools::ReplaceString(cmd, "$$", "$");
#ifdef _WIN32
script << cmd << " || exit /b" << '\n';
script << cmd << " || exit /b 1" << '\n';
#else
script << cmd << '\n';
#endif