summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index e09dca8..a07fae0 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1277,8 +1277,6 @@ int cmake::Run(const std::vector<std::string>& args, bool noconfigure)
return 0;
}
- int ret = 0;
-
// now run the global generate
// Check the state of the build system to see if we need to regenerate.
if(!this->CheckBuildSystem())
@@ -1292,7 +1290,7 @@ int cmake::Run(const std::vector<std::string>& args, bool noconfigure)
std::string oldstartoutputdir = this->GetStartOutputDirectory();
this->SetStartDirectory(this->GetHomeDirectory());
this->SetStartOutputDirectory(this->GetHomeOutputDirectory());
- ret = this->Configure();
+ int ret = this->Configure();
if (ret || m_ScriptMode)
{
return ret;