Răsfoiți Sursa

file(GENERATE): Fix missing check for policy CMP0070

In commit 82be694c7a (file(GENERATE): Add policy CMP0070 to define
relative path behavior, 2017-06-08, v3.10.0-rc1~534^2), one path
calculation was forgotten.  Because of this the path name according to
the old behavior was added to the list of CMake generated files.

Fixes: #21038
Josef Angstenberger 5 ani în urmă
părinte
comite
04fbd7566a
1 a modificat fișierele cu 1 adăugiri și 2 ștergeri
  1. 1 2
      Source/cmGeneratorExpressionEvaluationFile.cxx

+ 1 - 2
Source/cmGeneratorExpressionEvaluationFile.cxx

@@ -94,8 +94,7 @@ void cmGeneratorExpressionEvaluationFile::CreateOutputFile(
   gg->GetEnabledLanguages(enabledLanguages);
 
   for (std::string const& le : enabledLanguages) {
-    std::string name = this->OutputFileExpr->Evaluate(lg, config, nullptr,
-                                                      nullptr, nullptr, le);
+    std::string const name = this->GetOutputFileName(lg, config, le);
     cmSourceFile* sf = lg->GetMakefile()->GetOrCreateSource(
       name, false, cmSourceFileLocationKind::Known);
     // Tell TraceDependencies that the file is not expected to exist