summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-09-13 19:56:06 (GMT)
committerBrad King <brad.king@kitware.com>2010-09-13 20:17:20 (GMT)
commita6b5ead62fb4e69c053d752570f4c8af24e41857 (patch)
tree293eb05765da0e3feaafe4611bb1741f9fb85fed /Source/cmTarget.cxx
parentf3bc219adbbf10f3a75af1ac1db1f47b90102e19 (diff)
downloadCMake-a6b5ead62fb4e69c053d752570f4c8af24e41857.zip
CMake-a6b5ead62fb4e69c053d752570f4c8af24e41857.tar.gz
CMake-a6b5ead62fb4e69c053d752570f4c8af24e41857.tar.bz2
Report missing source files with context of target
Previously we reported only the CMakeLists.txt file in the directory that adds the 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 9611912..042371a 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -1439,8 +1439,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;
}
}