diff options
author | Brad King <brad.king@kitware.com> | 2008-05-12 21:43:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-05-12 21:43:45 (GMT) |
commit | 771bdb7ef84b99f29b87c5424a78daf1d49c9dc7 (patch) | |
tree | d441dabefe0a3e05aee18941277bc39498035e8f /Source/cmTarget.cxx | |
parent | 96525cf3c36650e2257f37a63d61a1244e4aa486 (diff) | |
download | CMake-771bdb7ef84b99f29b87c5424a78daf1d49c9dc7.zip CMake-771bdb7ef84b99f29b87c5424a78daf1d49c9dc7.tar.gz CMake-771bdb7ef84b99f29b87c5424a78daf1d49c9dc7.tar.bz2 |
BUG: Make sure all source files are found before generating.
- Previously this was done implicitly by the check for a target
link language which checked all source full paths.
- The recent change to support computing a link language without
finding all the source files skipped the implicit check.
- This change adds an explicit check to find all source files.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 1bf3061..70ba7ea 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -1006,6 +1006,21 @@ void cmTarget::TraceDependencies(const char* vsProjectFile) } //---------------------------------------------------------------------------- +bool cmTarget::FindSourceFiles() +{ + for(std::vector<cmSourceFile*>::const_iterator + si = this->SourceFiles.begin(); + si != this->SourceFiles.end(); ++si) + { + if((*si)->GetFullPath().empty()) + { + return false; + } + } + return true; +} + +//---------------------------------------------------------------------------- void cmTarget::AddSources(std::vector<std::string> const& srcs) { for(std::vector<std::string>::const_iterator i = srcs.begin(); |