summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-01-19 19:02:44 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-01-19 19:02:44 (GMT)
commitcc6ba3abff983f7da6dd1301e422618065f38551 (patch)
tree3815bafab068bac6dc93385e7427bac7a299ade9 /Source/cmSourceFile.cxx
parentef27b9cd899713373c6888ed55fb19420f0f5bb8 (diff)
parent7af41c3492c5c11d6931383810e079be74309096 (diff)
downloadCMake-cc6ba3abff983f7da6dd1301e422618065f38551.zip
CMake-cc6ba3abff983f7da6dd1301e422618065f38551.tar.gz
CMake-cc6ba3abff983f7da6dd1301e422618065f38551.tar.bz2
Merge topic 'missing-file-dir-issue-11677'
7af41c3 Test that missing source mentions directory (#11677) 9cefce0 Report directory with missing source file (#11677)
Diffstat (limited to 'Source/cmSourceFile.cxx')
-rw-r--r--Source/cmSourceFile.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmSourceFile.cxx b/Source/cmSourceFile.cxx
index 84b728e..ed1da7b 100644
--- a/Source/cmSourceFile.cxx
+++ b/Source/cmSourceFile.cxx
@@ -188,8 +188,13 @@ bool cmSourceFile::FindFullPath(std::string* error)
}
cmOStringStream e;
- e << "Cannot find source file \"" << this->Location.GetName() << "\"";
- e << ". Tried extensions";
+ std::string missing = this->Location.GetDirectory();
+ if(!missing.empty())
+ {
+ missing += "/";
+ }
+ missing += this->Location.GetName();
+ e << "Cannot find source file:\n " << missing << "\nTried extensions";
for(std::vector<std::string>::const_iterator ext = srcExts.begin();
ext != srcExts.end(); ++ext)
{