mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-26 08:08:24 -05:00
FILE_SET: Make INTERFACE libraries with HEADER_SETS participate in buildsystem
If an INTERFACE library has HEADER_SETS, and its header sets contain files generated by a custom command, the library needs to participate in the buildsystem so that the files will be generated. Fixes: #23422
This commit is contained in:
@@ -1208,8 +1208,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;
|
||||
|
||||
Reference in New Issue
Block a user