Ver Fonte

cmFileAPI: Resolve full path in PCH source comparison

Issue: 19927
Daniel Eiband há 6 anos atrás
pai
commit
ec2f130aa9
1 ficheiros alterados com 1 adições e 1 exclusões
  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 {