From 8616d12cfc868492c030168c228983cf6b22b534 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Wed, 21 Oct 2015 21:14:00 +0200 Subject: [PATCH] Xcode: Re-order conditions. --- Source/cmGlobalXCodeGenerator.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index f00c9e598..443886086 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -2923,15 +2923,15 @@ void cmGlobalXCodeGenerator ::AddDependAndLinkInformation(cmXCodeObject* target) { cmTarget* cmtarget = target->GetTarget(); - if(cmtarget->GetType() == cmState::INTERFACE_LIBRARY) - { - return; - } if(!cmtarget) { cmSystemTools::Error("Error no target on xobject\n"); return; } + if(cmtarget->GetType() == cmState::INTERFACE_LIBRARY) + { + return; + } // Add dependencies on other CMake targets. cmGeneratorTarget* gt = this->GetGeneratorTarget(cmtarget);