summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-04-29 18:17:35 (GMT)
committerBrad King <brad.king@kitware.com>2008-04-29 18:17:35 (GMT)
commit19aafdb35526cbb2cf6b16cd8e264cb06cc15650 (patch)
tree5d1e8841879a7a5a6e090d08eee1ec8df1aeee9e /Source/cmSourceFile.cxx
parentfb8c255c2de917949227e7be02a2d5cad3ddce29 (diff)
downloadCMake-19aafdb35526cbb2cf6b16cd8e264cb06cc15650.zip
CMake-19aafdb35526cbb2cf6b16cd8e264cb06cc15650.tar.gz
CMake-19aafdb35526cbb2cf6b16cd8e264cb06cc15650.tar.bz2
ENH: Add context information when a source file cannot be found.
Diffstat (limited to 'Source/cmSourceFile.cxx')
-rw-r--r--Source/cmSourceFile.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSourceFile.cxx b/Source/cmSourceFile.cxx
index da2e79a..7b32235 100644
--- a/Source/cmSourceFile.cxx
+++ b/Source/cmSourceFile.cxx
@@ -179,7 +179,7 @@ bool cmSourceFile::FindFullPath()
cmOStringStream e;
e << "Cannot find source file \"" << this->Location.GetName() << "\"";
- e << "\n\nTried extensions";
+ e << ". Tried extensions";
for(std::vector<std::string>::const_iterator ext = srcExts.begin();
ext != srcExts.end(); ++ext)
{
@@ -190,7 +190,7 @@ bool cmSourceFile::FindFullPath()
{
e << " ." << *ext;
}
- cmSystemTools::Error(e.str().c_str());
+ this->Location.GetMakefile()->IssueMessage(cmake::FATAL_ERROR, e.str());
this->FindFullPathFailed = true;
return false;
}