summaryrefslogtreecommitdiffstats
path: root/Source/cmTargetPropCommandBase.cxx
diff options
context:
space:
mode:
authorAvraham Shukron <avraham.shukron@gmail.com>2019-07-19 19:48:20 (GMT)
committerBrad King <brad.king@kitware.com>2019-07-22 12:53:52 (GMT)
commit62b5d1e4adf4f21a953557edf6552e3a81f47c07 (patch)
tree516b4d336b1be74c9f9396743f658559bc1dbb05 /Source/cmTargetPropCommandBase.cxx
parent0c6e27bff1dc362993c2e1f5271424b4c881140a (diff)
downloadCMake-62b5d1e4adf4f21a953557edf6552e3a81f47c07.zip
CMake-62b5d1e4adf4f21a953557edf6552e3a81f47c07.tar.gz
CMake-62b5d1e4adf4f21a953557edf6552e3a81f47c07.tar.bz2
cmTargetPropCommandBase: Order target type condition by order in enum
This improves readability.
Diffstat (limited to 'Source/cmTargetPropCommandBase.cxx')
-rw-r--r--Source/cmTargetPropCommandBase.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmTargetPropCommandBase.cxx b/Source/cmTargetPropCommandBase.cxx
index 1b8ee81..2f93e39 100644
--- a/Source/cmTargetPropCommandBase.cxx
+++ b/Source/cmTargetPropCommandBase.cxx
@@ -32,12 +32,12 @@ bool cmTargetPropCommandBase::HandleArguments(
this->HandleMissingTarget(args[0]);
return false;
}
- if ((this->Target->GetType() != cmStateEnums::SHARED_LIBRARY) &&
+ if ((this->Target->GetType() != cmStateEnums::EXECUTABLE) &&
(this->Target->GetType() != cmStateEnums::STATIC_LIBRARY) &&
- (this->Target->GetType() != cmStateEnums::OBJECT_LIBRARY) &&
+ (this->Target->GetType() != cmStateEnums::SHARED_LIBRARY) &&
(this->Target->GetType() != cmStateEnums::MODULE_LIBRARY) &&
- (this->Target->GetType() != cmStateEnums::INTERFACE_LIBRARY) &&
- (this->Target->GetType() != cmStateEnums::EXECUTABLE)) {
+ (this->Target->GetType() != cmStateEnums::OBJECT_LIBRARY) &&
+ (this->Target->GetType() != cmStateEnums::INTERFACE_LIBRARY)) {
this->SetError("called with non-compilable target type");
return false;
}