diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2022-07-27 12:08:11 -0400 |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2022-07-27 12:25:15 -0400 |
commit | 27fd172d8dcd42f5c9dc362cc3572f4f4d8132cd (patch) | |
tree | ccd623ca70652d074573188b4943d8a13757ea62 /Source/cmGeneratorTarget.cxx | |
parent | 626e641a19c2eadd0f204e87237748afcbe3b2b5 (diff) | |
download | cmake-27fd172d8dcd42f5c9dc362cc3572f4f4d8132cd.tar.gz |
VERIFY_INTERFACE_HEADER_SETS: Finalize compile info for verify targets
Fixes: #23732
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 8a7215b127..729e534d43 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -16,6 +16,7 @@ #include <utility> #include <cm/memory> +#include <cm/optional> #include <cm/string_view> #include <cmext/algorithm> #include <cmext/string_view> @@ -8616,6 +8617,11 @@ bool cmGeneratorTarget::AddHeaderSetVerification() verifyTarget->SetProperty("AUTOUIC", "OFF"); verifyTarget->SetProperty("DISABLE_PRECOMPILE_HEADERS", "ON"); verifyTarget->SetProperty("UNITY_BUILD", "OFF"); + cm::optional<std::map<std::string, cmValue>> + perConfigCompileDefinitions; + verifyTarget->FinalizeTargetCompileInfo( + this->Makefile->GetCompileDefinitionsEntries(), + perConfigCompileDefinitions); } if (fileCgesContextSensitive) { |