diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-11-29 12:18:24 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-12-11 13:23:09 (GMT) |
commit | 41e48c45e8069ea551ab8511457fd712f5b3b89b (patch) | |
tree | d47f5a9e097464b330c19907e21e128f50fbfd29 /Source/cmGlobalGenerator.cxx | |
parent | 62b90453d701d655cc53b0cda4c9d3d800fefa26 (diff) | |
download | CMake-41e48c45e8069ea551ab8511457fd712f5b3b89b.zip CMake-41e48c45e8069ea551ab8511457fd712f5b3b89b.tar.gz CMake-41e48c45e8069ea551ab8511457fd712f5b3b89b.tar.bz2 |
Avoid certain actions on IMPORTED targets.
As we're iterating over IMPORTED targets now, handle them in
the loop body. The existing behavior is harmless because generally
nothing is done anyway for IMPORTED targets in these code paths,
because they do not have sources for example.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index e6f3d94..83281ce 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -1379,6 +1379,10 @@ void cmGlobalGenerator::ComputeGeneratorTargetObjects() for(cmGeneratorTargetsType::iterator ti = targets.begin(); ti != targets.end(); ++ti) { + if (ti->second->Target->IsImported()) + { + continue; + } cmGeneratorTarget* gt = ti->second; gt->ClassifySources(); gt->LookupObjectLibraries(); |