summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-07-31 14:33:25 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-07-31 14:33:25 (GMT)
commit6f31b0dfbd5fbd234d08f716703b6d05c659e086 (patch)
tree410fc30c88ba41252b2949d2cc6ff6f8d087e8d3 /Source/cmake.cxx
parent9926b7f717f90ca6b5055d1cbf205f258466df99 (diff)
downloadCMake-6f31b0dfbd5fbd234d08f716703b6d05c659e086.zip
CMake-6f31b0dfbd5fbd234d08f716703b6d05c659e086.tar.gz
CMake-6f31b0dfbd5fbd234d08f716703b6d05c659e086.tar.bz2
ENH: add a --trace option
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index df95155..3a0a463 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -140,6 +140,7 @@ void cmNeedBackwardsCompatibility(const std::string& variable,
cmake::cmake()
{
+ this->Trace = false;
this->SuppressDevWarnings = false;
this->DoSuppressDevWarnings = false;
this->DebugOutput = false;
@@ -618,6 +619,11 @@ void cmake::SetArgs(const std::vector<std::string>& args)
std::cout << "Running with debug output on.\n";
this->SetDebugOutputOn(true);
}
+ else if(arg.find("--trace",0) == 0)
+ {
+ std::cout << "Running with trace output on.\n";
+ this->SetTrace(true);
+ }
else if(arg.find("-G",0) == 0)
{
std::string value = arg.substr(2);