diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-12-11 12:53:13 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-12-11 12:53:13 (GMT) |
commit | fa9a72a788ee5b1d8f1aa6dd7d19db3e118b8939 (patch) | |
tree | b5c30644548b6c7cd5e56a7dbb866608981d36d9 | |
parent | e5dce1a37ed89bbf4a499ff8b02be327b3cb59a4 (diff) | |
download | CMake-fa9a72a788ee5b1d8f1aa6dd7d19db3e118b8939.zip CMake-fa9a72a788ee5b1d8f1aa6dd7d19db3e118b8939.tar.gz CMake-fa9a72a788ee5b1d8f1aa6dd7d19db3e118b8939.tar.bz2 |
cmLocalGenerator: disable C++ module scanning for copied PCH sources
-rw-r--r-- | Source/cmLocalGenerator.cxx | 1 |
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()); |