mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
cmLocalGenerator: prevent scanning of PCH source files
This commit is contained in:
@@ -2706,6 +2706,9 @@ void cmLocalGenerator::AddPchDependencies(cmGeneratorTarget* target)
|
||||
|
||||
auto* pch_sf = this->Makefile->GetOrCreateSource(
|
||||
pchSource, false, cmSourceFileLocationKind::Known);
|
||||
// PCH sources should never be scanned as they cannot contain C++
|
||||
// module references.
|
||||
pch_sf->SetProperty("CXX_SCAN_FOR_MODULES", "0");
|
||||
|
||||
if (!this->GetGlobalGenerator()->IsXcode()) {
|
||||
if (!ReuseFrom) {
|
||||
|
||||
Reference in New Issue
Block a user