diff options
author | Brad King <brad.king@kitware.com> | 2012-10-01 19:18:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-10-01 19:18:21 (GMT) |
commit | a61f633737067da7d765c5e479a7d6754d4a083a (patch) | |
tree | b62dd41469e20b4bb7d777b3f40a0761968ff9d1 /Source/cmIfCommand.cxx | |
parent | 8c55ea017e671223d7acc01f5121b6b45c697c2a (diff) | |
parent | 4075e1ca6ccd01183c9bb582a2291c5abc70a828 (diff) | |
download | CMake-a61f633737067da7d765c5e479a7d6754d4a083a.zip CMake-a61f633737067da7d765c5e479a7d6754d4a083a.tar.gz CMake-a61f633737067da7d765c5e479a7d6754d4a083a.tar.bz2 |
Merge branch 'master' into import-KWSys-subtree
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r-- | Source/cmIfCommand.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx index 4eed477..ffc0f35 100644 --- a/Source/cmIfCommand.cxx +++ b/Source/cmIfCommand.cxx @@ -74,6 +74,13 @@ IsFunctionBlocked(const cmListFileFunction& lff, { this->IsBlocking = this->HasRun; this->HasRun = true; + + // if trace is enabled, print a (trivially) evaluated "else" + // statement + if(!this->IsBlocking && mf.GetCMakeInstance()->GetTrace()) + { + mf.PrintCommandTrace(this->Functions[c]); + } } else if (scopeDepth == 0 && !cmSystemTools::Strucmp (this->Functions[c].Name.c_str(),"elseif")) @@ -88,6 +95,12 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefileCall stack_manager(&mf, this->Functions[c], status); static_cast<void>(stack_manager); + // if trace is enabled, print the evaluated "elseif" statement + if(mf.GetCMakeInstance()->GetTrace()) + { + mf.PrintCommandTrace(this->Functions[c]); + } + std::string errorString; std::vector<std::string> expandedArguments; |