diff options
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]; |