From d74d8aeb719a6af1563c5deb59615649ec1528e5 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 5 Apr 2005 11:23:08 -0400 Subject: [PATCH] BUG: fix for bug 1700 --- Source/cmake.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index ce33770c5..90a3dde6c 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1241,6 +1241,11 @@ int cmake::Run(const std::vector& args, bool noconfigure) { // Process the arguments this->SetArgs(args); + if(cmSystemTools::GetErrorOccuredFlag()) + { + CMakeCommandUsage(args[0].c_str()); + return -1; + } // set the cmake command m_CMakeCommand = args[0];