cmFileAPI: Resolve full path in PCH source comparison

Issue: 19927
This commit is contained in:
Daniel Eiband
2019-11-11 13:03:29 +01:00
parent bae7a82ffa
commit ec2f130aa9

View File

@@ -875,7 +875,7 @@ CompileData Target::BuildCompileData(cmSourceFile* sf)
if (!pchSource.empty() && !sf->GetProperty("SKIP_PRECOMPILE_HEADERS")) {
std::string pchOptions;
if (sf->GetFullPath() == pchSource) {
if (sf->ResolveFullPath() == pchSource) {
pchOptions =
this->GT->GetPchCreateCompileOptions(this->Config, fd.Language);
} else {