summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio10Generator.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2010-12-17 16:11:55 (GMT)
committerDavid Cole <david.cole@kitware.com>2010-12-17 16:11:55 (GMT)
commit66e79175327249aa2f0c80f5bd4a360b5b628bff (patch)
treecdeb74d2df2d8a3833921471b9ff9b4b1d962582 /Source/cmLocalVisualStudio10Generator.cxx
parentd11c70295b072d19c90c3e5d415d27de10253615 (diff)
downloadCMake-66e79175327249aa2f0c80f5bd4a360b5b628bff.zip
CMake-66e79175327249aa2f0c80f5bd4a360b5b628bff.tar.gz
CMake-66e79175327249aa2f0c80f5bd4a360b5b628bff.tar.bz2
VS10: stop build on custom command error (#11533)
In VS9 and previous versions, :VCReportError is the goto label to jump to after a failed custom command. It stops the build before it tries to go any further. In VS10, :VCEnd is the correct label to use. Create a method in the VS generators to provide the correct line of script to use for each version of Visual Studio. For more internal details, search for VCEnd in the C:\Program Files\MSBuild directory.
Diffstat (limited to 'Source/cmLocalVisualStudio10Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio10Generator.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudio10Generator.cxx b/Source/cmLocalVisualStudio10Generator.cxx
index 57d8653..de2a837 100644
--- a/Source/cmLocalVisualStudio10Generator.cxx
+++ b/Source/cmLocalVisualStudio10Generator.cxx
@@ -117,3 +117,9 @@ void cmLocalVisualStudio10Generator
"Stored GUID",
cmCacheManager::INTERNAL);
}
+
+//----------------------------------------------------------------------------
+std::string cmLocalVisualStudio10Generator::CheckForErrorLine()
+{
+ return "if errorlevel 1 goto :VCEnd";
+}