summaryrefslogtreecommitdiff
path: root/Source/cmTargetPropCommandBase.cxx
diff options
context:
space:
mode:
authorAvraham Shukron <avraham.shukron@gmail.com>2019-07-19 22:50:59 +0300
committerBrad King <brad.king@kitware.com>2019-07-22 10:23:39 -0400
commit680a3c63bb3a6485a1774a457f3f2a63ad96b728 (patch)
tree91804953565e546801f09ec7166b19e3e4bebcb2 /Source/cmTargetPropCommandBase.cxx
parent62b5d1e4adf4f21a953557edf6552e3a81f47c07 (diff)
downloadcmake-680a3c63bb3a6485a1774a457f3f2a63ad96b728.tar.gz
target_*: Allow setting INTERFACE properties of UNKNOWN IMPORTED targets
Extend the change made by commit fe4b25ec2f (Teach target_* commands to set INTERFACE properties of IMPORTED targets, 2017-09-18, v3.11.0-rc1~433^2~2) to work with imported targets of type `UNKNOWN`. Fixes: #19434
Diffstat (limited to 'Source/cmTargetPropCommandBase.cxx')
-rw-r--r--Source/cmTargetPropCommandBase.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmTargetPropCommandBase.cxx b/Source/cmTargetPropCommandBase.cxx
index 2f93e391ee..3aa845c940 100644
--- a/Source/cmTargetPropCommandBase.cxx
+++ b/Source/cmTargetPropCommandBase.cxx
@@ -37,7 +37,8 @@ bool cmTargetPropCommandBase::HandleArguments(
(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::INTERFACE_LIBRARY) &&
+ (this->Target->GetType() != cmStateEnums::UNKNOWN_LIBRARY)) {
this->SetError("called with non-compilable target type");
return false;
}