From 2295040e85321911d65bd36704560725d9c2ad27 Mon Sep 17 00:00:00 2001 From: Mark O'Neill Date: Tue, 4 Dec 2018 12:21:42 +0000 Subject: cmLocalNinjaGenerator: Propagate failures from batch file back to ninja Fixes: #18676 --- Source/cmLocalNinjaGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx index 8a07516..ecea4ea 100644 --- a/Source/cmLocalNinjaGenerator.cxx +++ b/Source/cmLocalNinjaGenerator.cxx @@ -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 -- cgit v0.12