diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-21 19:14:00 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-24 07:19:54 (GMT) |
commit | 8616d12cfc868492c030168c228983cf6b22b534 (patch) | |
tree | 360ef50009c4c84cf1bd7ece978b81f796c0b538 /Source/cmGlobalXCodeGenerator.cxx | |
parent | ed4ea59a33d094245ff4807c143134846b2be77a (diff) | |
download | CMake-8616d12cfc868492c030168c228983cf6b22b534.zip CMake-8616d12cfc868492c030168c228983cf6b22b534.tar.gz CMake-8616d12cfc868492c030168c228983cf6b22b534.tar.bz2 |
Xcode: Re-order conditions.
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 6 |
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; } |