diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-10-06 15:11:59 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-10-06 15:11:59 (GMT) |
commit | 017cec95ada69369e3959cc9c09248335ea2dbfa (patch) | |
tree | 8605887f13d7632a16e94899ad5fdc955aa990a9 /Source/cmake.cxx | |
parent | 7f7374e8189871289b604fcc8f109411bca793dd (diff) | |
download | CMake-017cec95ada69369e3959cc9c09248335ea2dbfa.zip CMake-017cec95ada69369e3959cc9c09248335ea2dbfa.tar.gz CMake-017cec95ada69369e3959cc9c09248335ea2dbfa.tar.bz2 |
ENH: do not print a call stack if the user does a message error unless --debug-output is used
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 8636aa0..c1ca881 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -111,6 +111,7 @@ void cmNeedBackwardsCompatibility(const std::string& variable, cmake::cmake() { + this->DebugOutput = false; this->DebugTryCompile = false; this->ClearBuildSystem = false; this->FileComparison = new cmFileTimeComparison; @@ -446,6 +447,11 @@ void cmake::SetArgs(const std::vector<std::string>& args) std::cout << "debug trycompile on\n"; this->DebugTryCompileOn(); } + else if(arg.find("--debug-output",0) == 0) + { + std::cout << "Running with debug output on.\n"; + this->DebugOutputOn(); + } else if(arg.find("-G",0) == 0) { std::string value = arg.substr(2); |