summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2022-07-27 16:08:11 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2022-07-27 16:25:15 (GMT)
commit27fd172d8dcd42f5c9dc362cc3572f4f4d8132cd (patch)
treeccd623ca70652d074573188b4943d8a13757ea62 /Source
parent626e641a19c2eadd0f204e87237748afcbe3b2b5 (diff)
downloadCMake-27fd172d8dcd42f5c9dc362cc3572f4f4d8132cd.zip
CMake-27fd172d8dcd42f5c9dc362cc3572f4f4d8132cd.tar.gz
CMake-27fd172d8dcd42f5c9dc362cc3572f4f4d8132cd.tar.bz2
VERIFY_INTERFACE_HEADER_SETS: Finalize compile info for verify targets
Fixes: #23732
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGeneratorTarget.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 8a7215b..729e534 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) {