diff options
author | Brad King <brad.king@kitware.com> | 2022-11-16 13:56:55 +0000 |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-11-16 08:57:04 -0500 |
commit | b686b582089b7351feedaabe648b0a61de929978 (patch) | |
tree | eba5ca432a1c391a301a23bda23833ca5111d6e6 /Source/cmLocalGenerator.cxx | |
parent | b7ab39bf59c1b68140f1884676a2cfdaee2f7b41 (diff) | |
parent | 94164ea55e3a24274088afd23ad9018aa04b1c50 (diff) | |
download | cmake-b686b582089b7351feedaabe648b0a61de929978.tar.gz |
Merge topic 'cmp0141-pch-reuse'
94164ea55e CMP0141: Fix PCH REUSE_FROM when MSVC_DEBUG_INFORMATION_FORMAT is empty
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7914
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 31c6504217..97451420eb 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -2677,8 +2677,10 @@ void cmLocalGenerator::AddPchDependencies(cmGeneratorTarget* target) bool editAndContinueDebugInfo = false; bool programDatabaseDebugInfo = false; - if (cm::optional<std::string> msvcDebugInformationFormat = - this->GetMSVCDebugFormatName(config, target)) { + cm::optional<std::string> msvcDebugInformationFormat = + this->GetMSVCDebugFormatName(config, target); + if (msvcDebugInformationFormat && + !msvcDebugInformationFormat->empty()) { editAndContinueDebugInfo = *msvcDebugInformationFormat == "EditAndContinue"; programDatabaseDebugInfo = |