|
|
@@ -2961,6 +2961,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());
|
|
|
@@ -3265,6 +3266,7 @@ void cmLocalGenerator::AddUnityBuild(cmGeneratorTarget* target)
|
|
|
target->AddSource(file.Path, true);
|
|
|
unity->SetProperty("SKIP_UNITY_BUILD_INCLUSION", "ON");
|
|
|
unity->SetProperty("UNITY_SOURCE_FILE", file.Path);
|
|
|
+ unity->SetProperty("CXX_SCAN_FOR_MODULES", "0");
|
|
|
if (file.PerConfig) {
|
|
|
unity->SetProperty("COMPILE_DEFINITIONS",
|
|
|
"CMAKE_UNITY_CONFIG_$<UPPER_CASE:$<CONFIG>>");
|