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:43 (GMT) |
commit | e7bfd0ac7aed989dc5d58d713627826c06537f89 (patch) | |
tree | da68ef5dab66229b35133fee0c8fe4d7e3a1c984 /Source/cmGeneratorTarget.cxx | |
parent | f8f8b8e60e157cd6e5bffbf8b1dd7f6273cd16f8 (diff) | |
parent | 83e44002aeee2e6d147bf5bbd185137c32ff04ce (diff) | |
download | CMake-e7bfd0ac7aed989dc5d58d713627826c06537f89.zip CMake-e7bfd0ac7aed989dc5d58d713627826c06537f89.tar.gz CMake-e7bfd0ac7aed989dc5d58d713627826c06537f89.tar.bz2 |
Merge topic 'all-verify-interface-header-sets'
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 d59ac2b..7cd7915 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -8579,6 +8579,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(); @@ -8666,6 +8669,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) { |