Browse Source

cmFileAPI: Resolve full path in PCH source comparison

Issue: 19927
Daniel Eiband 6 years ago
parent
commit
ec2f130aa9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmFileAPICodemodel.cxx

+ 1 - 1
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 {