summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-23 12:45:14 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-05-24 11:29:48 (GMT)
commita4d230af7d594b7bc2a047468da7849c27438237 (patch)
tree8efcac97e6b4bf4fa76fbe19b5439cfa2baae1b0 /Source
parent550e08b012a67a20d4c71cb9e0b3aafadd265012 (diff)
downloadCMake-a4d230af7d594b7bc2a047468da7849c27438237.zip
CMake-a4d230af7d594b7bc2a047468da7849c27438237.tar.gz
CMake-a4d230af7d594b7bc2a047468da7849c27438237.tar.bz2
GHS: Don't attempt to generate for IMPORTED or INTERFACE targets.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalGhsMultiGenerator.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmLocalGhsMultiGenerator.cxx b/Source/cmLocalGhsMultiGenerator.cxx
index 9705803..025b464 100644
--- a/Source/cmLocalGhsMultiGenerator.cxx
+++ b/Source/cmLocalGhsMultiGenerator.cxx
@@ -31,6 +31,11 @@ void cmLocalGhsMultiGenerator::Generate()
for (cmGeneratorTargetsType::iterator l = tgts.begin(); l != tgts.end();
++l)
{
+ if (l->second->Target->GetType() == cmTarget::INTERFACE_LIBRARY
+ || l->second->Target->IsImported())
+ {
+ continue;
+ }
cmGhsMultiTargetGenerator tg(l->second->Target);
tg.Generate();
}