diff options
author | Brad King <brad.king@kitware.com> | 2023-06-01 13:53:19 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-06-01 13:53:34 (GMT) |
commit | 64a4d1f1040f260a90f6551f1d4aad04c6ec34ec (patch) | |
tree | 29a5ae9164893449604863deecd4425854976e14 /Source/cmGeneratorTarget.cxx | |
parent | 54a4aa57791b0d70045182cee4f1f5cb55a2a61c (diff) | |
parent | 7b62a83c6fe827328fb7e1ec47605e5c21347d8f (diff) | |
download | CMake-64a4d1f1040f260a90f6551f1d4aad04c6ec34ec.zip CMake-64a4d1f1040f260a90f6551f1d4aad04c6ec34ec.tar.gz CMake-64a4d1f1040f260a90f6551f1d4aad04c6ec34ec.tar.bz2 |
Merge topic 'remove-header-unit-fileset-type'
7b62a83c6f cxxmodules: update the experimental UUID
6ff5cdc533 cxxmodules: remove support for `CXX_MODULE_HEADER_UNITS` filesets
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8510
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 2d71492..5c2e238 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -1204,12 +1204,11 @@ 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, - // HEADER_SETS, or C++ module filesets. + // An INTERFACE library is in the build system if it has SOURCES + // or C++ module filesets. if (!this->SourceEntries.empty() || !this->Target->GetHeaderSetsEntries().empty() || - !this->Target->GetCxxModuleSetsEntries().empty() || - !this->Target->GetCxxModuleHeaderSetsEntries().empty()) { + !this->Target->GetCxxModuleSetsEntries().empty()) { return true; } break; @@ -1645,8 +1644,7 @@ void addFileSetEntry(cmGeneratorTarget const* headTarget, } } if (!found) { - if (fileSet->GetType() == "HEADERS"_s || - fileSet->GetType() == "CXX_MODULE_HEADER_UNITS"_s) { + if (fileSet->GetType() == "HEADERS"_s) { headTarget->Makefile->GetOrCreateSourceGroup("Header Files") ->AddGroupFile(path); } @@ -1673,14 +1671,6 @@ void AddFileSetEntries(cmGeneratorTarget const* headTarget, addFileSetEntry(headTarget, config, dagChecker, cxxModuleSet, entries); } } - for (auto const& entry : - headTarget->Target->GetCxxModuleHeaderSetsEntries()) { - for (auto const& name : cmList{ entry.Value }) { - auto const* cxxModuleHeaderSet = headTarget->Target->GetFileSet(name); - addFileSetEntry(headTarget, config, dagChecker, cxxModuleHeaderSet, - entries); - } - } } bool processSources(cmGeneratorTarget const* tgt, @@ -8894,8 +8884,7 @@ bool cmGeneratorTarget::HaveCxx20ModuleSources() const } auto const& fs_type = file_set->GetType(); - return fs_type == "CXX_MODULES"_s || - fs_type == "CXX_MODULE_HEADER_UNITS"_s; + return fs_type == "CXX_MODULES"_s; }); } @@ -8998,9 +8987,7 @@ bool cmGeneratorTarget::NeedDyndepForSource(std::string const& lang, return false; } auto const* fs = this->GetFileSetForSource(config, sf); - if (fs && - (fs->GetType() == "CXX_MODULES"_s || - fs->GetType() == "CXX_MODULE_HEADER_UNITS"_s)) { + if (fs && fs->GetType() == "CXX_MODULES"_s) { return true; } auto const sfProp = sf->GetProperty("CXX_SCAN_FOR_MODULES"); |