summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.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/cmGlobalGenerator.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/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index a61cab1..0c44681 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -1468,7 +1468,8 @@ void cmGlobalGenerator::ComputeGeneratorTargetObjects()
for(cmGeneratorTargetsType::iterator ti = targets.begin();
ti != targets.end(); ++ti)
{
- if (ti->second->Target->IsImported())
+ if (ti->second->Target->IsImported()
+ || ti->second->Target->GetType() == cmTarget::INTERFACE_LIBRARY)
{
continue;
}