diff options
| author | Kyle Edwards <kyle.edwards@kitware.com> | 2022-08-03 13:58:34 (GMT) |
|---|---|---|
| committer | Kitware Robot <kwrobot@kitware.com> | 2022-08-03 13:58:42 (GMT) |
| commit | 9d24d62098d6bf2f9dc4c8e97b39310181443ba3 (patch) | |
| tree | 697086a3d4bfe06b80dc50e1bff327d9cfa55ed7 /Source/cmGeneratorTarget.cxx | |
| parent | a9d0bcc71ec2c79c6d75b143e5c053f0b7ea01f1 (diff) | |
| parent | 83e44002aeee2e6d147bf5bbd185137c32ff04ce (diff) | |
| download | CMake-9d24d62098d6bf2f9dc4c8e97b39310181443ba3.zip CMake-9d24d62098d6bf2f9dc4c8e97b39310181443ba3.tar.gz CMake-9d24d62098d6bf2f9dc4c8e97b39310181443ba3.tar.bz2 | |
Merge topic 'all-verify-interface-header-sets' into release-3.24
83e44002ae VERIFY_INTERFACE_HEADER_SETS: Add verification target for all
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7536
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
| -rw-r--r-- | Source/cmGeneratorTarget.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 3bb8671..0c351ad 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -8535,6 +8535,9 @@ bool cmGeneratorTarget::AddHeaderSetVerification() } cmTarget* verifyTarget = nullptr; + cmTarget* allVerifyTarget = + this->GlobalGenerator->GetMakefiles().front()->FindTargetToUse( + "all_verify_interface_header_sets", true); auto interfaceFileSetEntries = this->Target->GetInterfaceHeaderSetsEntries(); @@ -8622,6 +8625,15 @@ bool cmGeneratorTarget::AddHeaderSetVerification() verifyTarget->FinalizeTargetCompileInfo( this->Makefile->GetCompileDefinitionsEntries(), perConfigCompileDefinitions); + + if (!allVerifyTarget) { + allVerifyTarget = this->GlobalGenerator->GetMakefiles() + .front() + ->AddNewUtilityTarget( + "all_verify_interface_header_sets", true); + } + + allVerifyTarget->AddUtility(verifyTarget->GetName(), false); } if (fileCgesContextSensitive) { |
