summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-04-15 12:23:50 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-04-15 12:23:57 (GMT)
commit1cf59d526733b9025f2e307c2ec9a247f5b27235 (patch)
tree4340a4af1fbe6a7abaef16fd3c2ca109f2f0d286 /Source/cmGeneratorTarget.cxx
parentbde8fa492295795b94b0a03bb62cd7a371fd1665 (diff)
parentd0d09aa29fa354bc13a925655c0d191bbadd4c6a (diff)
downloadCMake-1cf59d526733b9025f2e307c2ec9a247f5b27235.zip
CMake-1cf59d526733b9025f2e307c2ec9a247f5b27235.tar.gz
CMake-1cf59d526733b9025f2e307c2ec9a247f5b27235.tar.bz2
Merge topic 'file-set-generated-dependency'
d0d09aa29f FILE_SET: Make INTERFACE libraries with HEADER_SETS participate in buildsystem Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Acked-by: Gabriel Nützi <gnuetzi@gmail.com> Merge-request: !7173
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index f1ab85c..d8a7c39 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -1213,8 +1213,10 @@ bool cmGeneratorTarget::IsInBuildSystem() const
case cmStateEnums::GLOBAL_TARGET:
return true;
case cmStateEnums::INTERFACE_LIBRARY:
- // An INTERFACE library is in the build system if it has SOURCES.
- if (!this->SourceEntries.empty()) {
+ // An INTERFACE library is in the build system if it has SOURCES or
+ // HEADER_SETS.
+ if (!this->SourceEntries.empty() ||
+ !this->Target->GetHeaderSetsEntries().empty()) {
return true;
}
break;