Browse Source

Xcode: Re-order conditions.

Stephen Kelly 10 years ago
parent
commit
8616d12cfc
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Source/cmGlobalXCodeGenerator.cxx

+ 3 - 3
Source/cmGlobalXCodeGenerator.cxx

@@ -2923,13 +2923,13 @@ void cmGlobalXCodeGenerator
 ::AddDependAndLinkInformation(cmXCodeObject* target)
 {
   cmTarget* cmtarget = target->GetTarget();
-  if(cmtarget->GetType() == cmState::INTERFACE_LIBRARY)
+  if(!cmtarget)
     {
+    cmSystemTools::Error("Error no target on xobject\n");
     return;
     }
-  if(!cmtarget)
+  if(cmtarget->GetType() == cmState::INTERFACE_LIBRARY)
     {
-    cmSystemTools::Error("Error no target on xobject\n");
     return;
     }