summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-02-09 15:12:51 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-02-09 15:13:03 (GMT)
commitb7a41d9b21f84c95882b1961edbf2cd1c16c9164 (patch)
treea92370c4b4a72185b12c30ca88c716eb0ed15352
parent0fd34d47507994fb766837d77ede2b24714fe6e9 (diff)
parent4b38d7d100144b51ab1852413213716ffb9678bb (diff)
downloadCMake-b7a41d9b21f84c95882b1961edbf2cd1c16c9164.zip
CMake-b7a41d9b21f84c95882b1961edbf2cd1c16c9164.tar.gz
CMake-b7a41d9b21f84c95882b1961edbf2cd1c16c9164.tar.bz2
Merge topic 'target-with-cxxmodule-filesets'
4b38d7d100 cmGeneratorTarget: `INTERFACE` targets with C++ modules are also "in" Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8179
-rw-r--r--Source/cmGeneratorTarget.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 5e352b2..f83be26 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -1222,10 +1222,12 @@ 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 or
- // HEADER_SETS.
+ // An INTERFACE library is in the build system if it has SOURCES,
+ // HEADER_SETS, or C++ module filesets.
if (!this->SourceEntries.empty() ||
- !this->Target->GetHeaderSetsEntries().empty()) {
+ !this->Target->GetHeaderSetsEntries().empty() ||
+ !this->Target->GetCxxModuleSetsEntries().empty() ||
+ !this->Target->GetCxxModuleHeaderSetsEntries().empty()) {
return true;
}
break;