summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-21 19:14:00 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-24 07:19:54 (GMT)
commit8616d12cfc868492c030168c228983cf6b22b534 (patch)
tree360ef50009c4c84cf1bd7ece978b81f796c0b538 /Source
parented4ea59a33d094245ff4807c143134846b2be77a (diff)
downloadCMake-8616d12cfc868492c030168c228983cf6b22b534.zip
CMake-8616d12cfc868492c030168c228983cf6b22b534.tar.gz
CMake-8616d12cfc868492c030168c228983cf6b22b534.tar.bz2
Xcode: Re-order conditions.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index f00c9e5..4438860 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/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;
}