summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-03-19 14:50:01 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-03-19 14:51:21 (GMT)
commit2600e923a66a86784f756c7d5b9a8b06c5848576 (patch)
tree67a071f94c4169fb2ce826de095de7a1a8f22b6e /Source/cmLocalGenerator.cxx
parent0f4e8fd0e9d4be3d6a9b6fd6d5a89f5155192064 (diff)
downloadCMake-2600e923a66a86784f756c7d5b9a8b06c5848576.zip
CMake-2600e923a66a86784f756c7d5b9a8b06c5848576.tar.gz
CMake-2600e923a66a86784f756c7d5b9a8b06c5848576.tar.bz2
Disallow INTERFACE libraries with add_custom_command(TARGET).
Don't attempt to trace their dependencies.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index aca195c..7890379 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -263,7 +263,8 @@ void cmLocalGenerator::TraceDependencies()
for(cmGeneratorTargetsType::iterator t = targets.begin();
t != targets.end(); ++t)
{
- if (t->second->Target->IsImported())
+ if (t->second->Target->IsImported()
+ || t->second->Target->GetType() == cmTarget::INTERFACE_LIBRARY)
{
continue;
}