Commit 63cd6e39 authored by Ken Martin's avatar Ken Martin
Browse files

COMP: fix a warning

parent 4f1591d9
...@@ -1277,8 +1277,6 @@ int cmake::Run(const std::vector<std::string>& args, bool noconfigure) ...@@ -1277,8 +1277,6 @@ int cmake::Run(const std::vector<std::string>& args, bool noconfigure)
return 0; return 0;
} }
int ret = 0;
// now run the global generate // now run the global generate
// Check the state of the build system to see if we need to regenerate. // Check the state of the build system to see if we need to regenerate.
if(!this->CheckBuildSystem()) if(!this->CheckBuildSystem())
...@@ -1292,7 +1290,7 @@ int cmake::Run(const std::vector<std::string>& args, bool noconfigure) ...@@ -1292,7 +1290,7 @@ int cmake::Run(const std::vector<std::string>& args, bool noconfigure)
std::string oldstartoutputdir = this->GetStartOutputDirectory(); std::string oldstartoutputdir = this->GetStartOutputDirectory();
this->SetStartDirectory(this->GetHomeDirectory()); this->SetStartDirectory(this->GetHomeDirectory());
this->SetStartOutputDirectory(this->GetHomeOutputDirectory()); this->SetStartOutputDirectory(this->GetHomeOutputDirectory());
ret = this->Configure(); int ret = this->Configure();
if (ret || m_ScriptMode) if (ret || m_ScriptMode)
{ {
return ret; return ret;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment