summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-07-27 13:31:22 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-07-27 13:31:22 (GMT)
commit280dde34dda52559411376be17591755f4b6358f (patch)
tree2a904a41cd7ed5b11fe83e7a8a24138f30629aaf /Source/cmake.cxx
parent0679c73b6ebcf2b336c1f69d93d6539b27ccaaff (diff)
parent594bafe52773c940fc3fb9cd9022a4d1a3a194c7 (diff)
downloadCMake-280dde34dda52559411376be17591755f4b6358f.zip
CMake-280dde34dda52559411376be17591755f4b6358f.tar.gz
CMake-280dde34dda52559411376be17591755f4b6358f.tar.bz2
Merge topic 'trace-expand'
594bafe5 cmake: add --trace-expand option
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 7bf3832..6abdbed 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -121,6 +121,7 @@ void cmWarnUnusedCliWarning(const std::string& variable,
cmake::cmake()
{
this->Trace = false;
+ this->TraceExpand = false;
this->WarnUninitialized = false;
this->WarnUnused = false;
this->WarnUnusedCli = true;
@@ -617,10 +618,17 @@ 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-expand",0) == 0)
+ {
+ std::cout << "Running with expanded trace output on.\n";
+ this->SetTrace(true);
+ this->SetTraceExpand(true);
+ }
else if(arg.find("--trace",0) == 0)
{
std::cout << "Running with trace output on.\n";
this->SetTrace(true);
+ this->SetTraceExpand(false);
}
else if(arg.find("--warn-uninitialized",0) == 0)
{