diff options
author | Brad King <brad.king@kitware.com> | 2010-09-14 17:31:10 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2010-09-14 17:31:10 (GMT) |
commit | 6580f5de996e99e090ccf9fefa5a2c5d14694478 (patch) | |
tree | 48ca163d80c1f13cf7b39b11a579e54afb375289 /Source/cmTarget.cxx | |
parent | ee66f2127167517bcaba326967bbbbcdffa97788 (diff) | |
parent | a6b5ead62fb4e69c053d752570f4c8af24e41857 (diff) | |
download | CMake-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.cxx | 9 |
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; } } |