diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 88aed1dd9..5256fd064 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -618,7 +618,7 @@ void cmake::SetArgs(const std::vector& args) else if(arg.find("--debug-output",0) == 0) { std::cout << "Running with debug output on.\n"; - this->DebugOutputOn(); + this->SetDebugOutputOn(true); } else if(arg.find("-G",0) == 0) { diff --git a/Source/cmake.h b/Source/cmake.h index 3f0c59887..c1e9a728b 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -317,7 +317,7 @@ class cmake // Do we want debug output during the cmake run. bool GetDebugOutput() { return this->DebugOutput; } - void DebugOutputOn() { this->DebugOutput = true;} + void SetDebugOutputOn(bool b) { this->DebugOutput = b;} // Define a property void DefineProperty(const char *name, cmProperty::ScopeType scope,