Merge topic 'cmake-sources-no-scan'
91b7bf59a7
cmGlobalXCodeGenerator: disable C++ module scanning for force-lang files9e19a61ddb
cmLocalGenerator: disable C++ module scanning for unity sourcesfa9a72a788
cmLocalGenerator: disable C++ module scanning for copied PCH sourcese5dce1a37e
cmQtAutoGenInitializer: disable C++ module scanning for autogen sources4fd596c34c
cmGeneratorTarget: disable C++ module scanning for verify targets Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9064
This commit is contained in:
commit
dbede7be7e
@ -9046,6 +9046,7 @@ bool cmGeneratorTarget::AddHeaderSetVerification()
|
||||
verifyTarget->SetProperty("AUTOUIC", "OFF");
|
||||
verifyTarget->SetProperty("DISABLE_PRECOMPILE_HEADERS", "ON");
|
||||
verifyTarget->SetProperty("UNITY_BUILD", "OFF");
|
||||
verifyTarget->SetProperty("CXX_SCAN_FOR_MODULES", "OFF");
|
||||
cm::optional<std::map<std::string, cmValue>>
|
||||
perConfigCompileDefinitions;
|
||||
verifyTarget->FinalizeTargetConfiguration(
|
||||
|
@ -1697,6 +1697,7 @@ void cmGlobalXCodeGenerator::ForceLinkerLanguage(cmGeneratorTarget* gtgt)
|
||||
}
|
||||
if (cmSourceFile* sf = mf->GetOrCreateSource(fname)) {
|
||||
sf->SetProperty("LANGUAGE", llang);
|
||||
sf->SetProperty("CXX_SCAN_FOR_MODULES", "0");
|
||||
gtgt->AddSource(fname);
|
||||
}
|
||||
}
|
||||
|
@ -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>>");
|
||||
|
@ -1914,6 +1914,7 @@ cmSourceFile* cmQtAutoGenInitializer::RegisterGeneratedSource(
|
||||
gFile->MarkAsGenerated();
|
||||
gFile->SetProperty("SKIP_AUTOGEN", "1");
|
||||
gFile->SetProperty("SKIP_LINTING", "ON");
|
||||
gFile->SetProperty("CXX_SCAN_FOR_MODULES", "0");
|
||||
return gFile;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user