diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-04-05 15:23:08 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-04-05 15:23:08 (GMT) |
commit | d74d8aeb719a6af1563c5deb59615649ec1528e5 (patch) | |
tree | fbb6b005667ee9036a1b87f8cab57dcd49f01165 /Source/cmake.cxx | |
parent | 0255dab023023e64a27eda035634fea023cab0bc (diff) | |
download | CMake-d74d8aeb719a6af1563c5deb59615649ec1528e5.zip CMake-d74d8aeb719a6af1563c5deb59615649ec1528e5.tar.gz CMake-d74d8aeb719a6af1563c5deb59615649ec1528e5.tar.bz2 |
BUG: fix for bug 1700
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index ce33770..90a3dde 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1241,6 +1241,11 @@ int cmake::Run(const std::vector<std::string>& 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]; |