summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-04-07 14:54:16 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-04-07 14:54:30 (GMT)
commit9a7d8394b17c8e655ed68cb31bf497a0ef72c34b (patch)
tree20525e1bfd52219d3be858ed294d300acde40168 /Source
parente6a200fa9f8703d3ceb7e9f5304460bab10cbe81 (diff)
parentf779f8c0ad4c16cda5a166d440915a01e986d396 (diff)
downloadCMake-9a7d8394b17c8e655ed68cb31bf497a0ef72c34b.zip
CMake-9a7d8394b17c8e655ed68cb31bf497a0ef72c34b.tar.gz
CMake-9a7d8394b17c8e655ed68cb31bf497a0ef72c34b.tar.bz2
Merge topic 'header-sets-no-framework'
f779f8c0ad FILE_SET: Forbid adding header sets to Apple FRAMEWORK libraries Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kyle Edwards <kyle.edwards@kitware.com> Merge-request: !7149
Diffstat (limited to 'Source')
-rw-r--r--Source/cmTargetSourcesCommand.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmTargetSourcesCommand.cxx b/Source/cmTargetSourcesCommand.cxx
index 43a9b3a..9173a34 100644
--- a/Source/cmTargetSourcesCommand.cxx
+++ b/Source/cmTargetSourcesCommand.cxx
@@ -230,6 +230,10 @@ bool TargetSourcesImpl::HandleOneFileSet(
this->SetError("FILE_SETs may not be added to custom targets");
return false;
}
+ if (this->Target->IsFrameworkOnApple()) {
+ this->SetError("FILE_SETs may not be added to FRAMEWORK targets");
+ return false;
+ }
bool const isDefault = args.Type == args.FileSet ||
(args.Type.empty() && args.FileSet[0] >= 'A' && args.FileSet[0] <= 'Z');