|
|
@@ -550,7 +550,7 @@ void cmListFileBacktrace::PrintTitle(std::ostream& out) const
|
|
|
cmListFileContext lfc = this->TopEntry->Context;
|
|
|
cmStateSnapshot bottom = this->GetBottom();
|
|
|
if (!bottom.GetState()->GetIsInTryCompile()) {
|
|
|
- lfc.FilePath = bottom.GetDirectory().ConvertToRelPathIfNotContained(
|
|
|
+ lfc.FilePath = bottom.GetDirectory().ConvertToRelPathIfContained(
|
|
|
bottom.GetState()->GetSourceDirectory(), lfc.FilePath);
|
|
|
}
|
|
|
out << (lfc.Line ? " at " : " in ") << lfc;
|
|
|
@@ -581,7 +581,7 @@ void cmListFileBacktrace::PrintCallStack(std::ostream& out) const
|
|
|
}
|
|
|
cmListFileContext lfc = cur->Context;
|
|
|
if (!bottom.GetState()->GetIsInTryCompile()) {
|
|
|
- lfc.FilePath = bottom.GetDirectory().ConvertToRelPathIfNotContained(
|
|
|
+ lfc.FilePath = bottom.GetDirectory().ConvertToRelPathIfContained(
|
|
|
bottom.GetState()->GetSourceDirectory(), lfc.FilePath);
|
|
|
}
|
|
|
out << " " << lfc << "\n";
|