Răsfoiți Sursa

Allow '.' in target names in generator expressions (#12002)

Simply add this character to the allowed list in the regular expression
used to parse generator expression components.
Brad King 14 ani în urmă
părinte
comite
08428ba38a
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      Source/cmGeneratorExpression.cxx

+ 1 - 1
Source/cmGeneratorExpression.cxx

@@ -23,7 +23,7 @@ cmGeneratorExpression::cmGeneratorExpression(
   this->TargetInfo.compile("^\\$<TARGET"
                            "(|_SONAME|_LINKER)"  // File with what purpose?
                            "_FILE(|_NAME|_DIR):" // Filename component.
-                           "([A-Za-z0-9_-]+)"    // Target name.
+                           "([A-Za-z0-9_.-]+)"   // Target name.
                            ">$");
 }