summaryrefslogtreecommitdiff
path: root/Source/cmFileAPICodemodel.cxx
diff options
context:
space:
mode:
authorDaniel Eiband <daniel.eiband@brainlab.com>2019-11-11 13:03:29 +0100
committerDaniel Eiband <daniel.eiband@brainlab.com>2019-11-11 13:03:29 +0100
commitec2f130aa9bf97860789c524c0b9902856e4bf18 (patch)
tree1750473e54cead1483518aea987b3fddcf720feb /Source/cmFileAPICodemodel.cxx
parentbae7a82ffab7350ae55a104d85d91b5d36347cae (diff)
downloadcmake-ec2f130aa9bf97860789c524c0b9902856e4bf18.tar.gz
cmFileAPI: Resolve full path in PCH source comparison
Issue: 19927
Diffstat (limited to 'Source/cmFileAPICodemodel.cxx')
-rw-r--r--Source/cmFileAPICodemodel.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFileAPICodemodel.cxx b/Source/cmFileAPICodemodel.cxx
index 48561de005..a12b3c963e 100644
--- a/Source/cmFileAPICodemodel.cxx
+++ b/Source/cmFileAPICodemodel.cxx
@@ -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 {