summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-07-23 11:30:43 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-07-23 11:30:53 (GMT)
commit5396c5fce4eae4f4b0a9b974e0a0304c7afda459 (patch)
treeea6b29048aba2ecbb003632a745560ad09687a6a /Source
parent6f476a41697eab23c46a33d93f5a17138c79dad2 (diff)
parent680a3c63bb3a6485a1774a457f3f2a63ad96b728 (diff)
downloadCMake-5396c5fce4eae4f4b0a9b974e0a0304c7afda459.zip
CMake-5396c5fce4eae4f4b0a9b974e0a0304c7afda459.tar.gz
CMake-5396c5fce4eae4f4b0a9b974e0a0304c7afda459.tar.bz2
Merge topic 'make-imported-targets-more-equal'
680a3c63bb target_*: Allow setting INTERFACE properties of UNKNOWN IMPORTED targets 62b5d1e4ad cmTargetPropCommandBase: Order target type condition by order in enum Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3581
Diffstat (limited to 'Source')
-rw-r--r--Source/cmTargetPropCommandBase.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmTargetPropCommandBase.cxx b/Source/cmTargetPropCommandBase.cxx
index 1b8ee81..3aa845c 100644
--- a/Source/cmTargetPropCommandBase.cxx
+++ b/Source/cmTargetPropCommandBase.cxx
@@ -32,12 +32,13 @@ 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::OBJECT_LIBRARY) &&
(this->Target->GetType() != cmStateEnums::INTERFACE_LIBRARY) &&
- (this->Target->GetType() != cmStateEnums::EXECUTABLE)) {
+ (this->Target->GetType() != cmStateEnums::UNKNOWN_LIBRARY)) {
this->SetError("called with non-compilable target type");
return false;
}