diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmTargetSourcesCommand.cxx | 4 |
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'); |