summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-09-14 17:31:10 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2010-09-14 17:31:10 (GMT)
commit6580f5de996e99e090ccf9fefa5a2c5d14694478 (patch)
tree48ca163d80c1f13cf7b39b11a579e54afb375289 /Source/cmTarget.cxx
parentee66f2127167517bcaba326967bbbbcdffa97788 (diff)
parenta6b5ead62fb4e69c053d752570f4c8af24e41857 (diff)
downloadCMake-6580f5de996e99e090ccf9fefa5a2c5d14694478.zip
CMake-6580f5de996e99e090ccf9fefa5a2c5d14694478.tar.gz
CMake-6580f5de996e99e090ccf9fefa5a2c5d14694478.tar.bz2
Merge topic 'improve-missing-source-file-error'
a6b5ead Report missing source files with context of target
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 591b0d1..458d1a5 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -1428,8 +1428,15 @@ bool cmTarget::FindSourceFiles()
si = this->SourceFiles.begin();
si != this->SourceFiles.end(); ++si)
{
- if((*si)->GetFullPath().empty())
+ std::string e;
+ if((*si)->GetFullPath(&e).empty())
{
+ if(!e.empty())
+ {
+ cmake* cm = this->Makefile->GetCMakeInstance();
+ cm->IssueMessage(cmake::FATAL_ERROR, e,
+ this->GetBacktrace());
+ }
return false;
}
}