Browse Source

Xcode: Skip Global targets when processing.

Stephen Kelly 10 years ago
parent
commit
32e4f6beca
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Source/cmGlobalXCodeGenerator.cxx

+ 5 - 0
Source/cmGlobalXCodeGenerator.cxx

@@ -502,6 +502,11 @@ cmGlobalXCodeGenerator::AddExtraTargets(cmLocalGenerator* root,
       {
       cmTarget& target = l->second;
 
+      if (target.GetType() == cmTarget::GLOBAL_TARGET)
+        {
+        continue;
+        }
+
       if (regenerate && (l->first != CMAKE_CHECK_BUILD_SYSTEM_TARGET))
         {
         target.AddUtility(CMAKE_CHECK_BUILD_SYSTEM_TARGET);