summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-12-11 12:53:13 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-12-11 12:53:13 (GMT)
commitfa9a72a788ee5b1d8f1aa6dd7d19db3e118b8939 (patch)
treeb5c30644548b6c7cd5e56a7dbb866608981d36d9
parente5dce1a37ed89bbf4a499ff8b02be327b3cb59a4 (diff)
downloadCMake-fa9a72a788ee5b1d8f1aa6dd7d19db3e118b8939.zip
CMake-fa9a72a788ee5b1d8f1aa6dd7d19db3e118b8939.tar.gz
CMake-fa9a72a788ee5b1d8f1aa6dd7d19db3e118b8939.tar.bz2
cmLocalGenerator: disable C++ module scanning for copied PCH sources
-rw-r--r--Source/cmLocalGenerator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index caac535..a3003bd 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2928,6 +2928,7 @@ void cmLocalGenerator::CopyPchCompilePdb(
} else {
cc->SetOutputs(outputs);
cmSourceFile* copy_rule = this->AddCustomCommandToOutput(std::move(cc));
+ copy_rule->SetProperty("CXX_SCAN_FOR_MODULES", "0");
if (copy_rule) {
target->AddSource(copy_rule->ResolveFullPath());