summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-02-14 12:43:40 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-02-14 12:53:14 (GMT)
commit9db9c1fc8b3314b70a243250ea2879c5a0e82799 (patch)
treeb0428685bd33ef8de2d94969135cd1abdc038198 /Source/cmGeneratorTarget.cxx
parent79bb8cfcf363124046048d90005f090d8d43047a (diff)
downloadCMake-9db9c1fc8b3314b70a243250ea2879c5a0e82799.zip
CMake-9db9c1fc8b3314b70a243250ea2879c5a0e82799.tar.gz
CMake-9db9c1fc8b3314b70a243250ea2879c5a0e82799.tar.bz2
cmTarget: Don't try to get sources of an INTERFACE_LIBRARY.
An an assert to ensure this.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 2573c85..175bb0e 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -498,11 +498,14 @@ cmTargetTraceDependencies
// Queue all the source files already specified for the target.
std::vector<cmSourceFile*> sources;
- this->Target->GetSourceFiles(sources);
- for(std::vector<cmSourceFile*>::const_iterator si = sources.begin();
- si != sources.end(); ++si)
+ if (this->Target->GetType() != cmTarget::INTERFACE_LIBRARY)
{
- this->QueueSource(*si);
+ this->Target->GetSourceFiles(sources);
+ for(std::vector<cmSourceFile*>::const_iterator si = sources.begin();
+ si != sources.end(); ++si)
+ {
+ this->QueueSource(*si);
+ }
}
// Queue pre-build, pre-link, and post-build rule dependencies.