diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 3e8ae857a..81960eb5f 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -272,8 +272,7 @@ void cmMakefile::IssueMessage(cmake::MessageType t, // command. Add whatever context information we have. lfc.FilePath = this->ListFileStack.back(); } - if(!this->CallStack.empty() - || !this->GetCMakeInstance()->GetIsInTryCompile()) + if(!this->GetCMakeInstance()->GetIsInTryCompile()) { lfc.FilePath = this->LocalGenerator->Convert(lfc.FilePath, cmLocalGenerator::HOME);