diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-09-20 10:12:00 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2012-09-20 10:13:33 (GMT) |
commit | fb578c8635b3c09f4a838c2ec9c671d9f1be34cd (patch) | |
tree | 834a760e90ba36bff002dfbbbaa7afa2c96ac2e3 /Source/cmGeneratorExpressionEvaluator.cxx | |
parent | d407dcdbc824688510837ec85bb2e3c85cf096bd (diff) | |
download | CMake-fb578c8635b3c09f4a838c2ec9c671d9f1be34cd.zip CMake-fb578c8635b3c09f4a838c2ec9c671d9f1be34cd.tar.gz CMake-fb578c8635b3c09f4a838c2ec9c671d9f1be34cd.tar.bz2 |
Fix the regular expression validator for target names.
Regression introduced by f1eacf0e07759b57d100dbf5d83c70e4028bcb54.
Target names have different valid contents to config names.
Diffstat (limited to 'Source/cmGeneratorExpressionEvaluator.cxx')
-rw-r--r-- | Source/cmGeneratorExpressionEvaluator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratorExpressionEvaluator.cxx b/Source/cmGeneratorExpressionEvaluator.cxx index acc844a..9f84ed2 100644 --- a/Source/cmGeneratorExpressionEvaluator.cxx +++ b/Source/cmGeneratorExpressionEvaluator.cxx @@ -299,7 +299,7 @@ struct TargetFilesystemArtifact : public cmGeneratorExpressionNode std::string name = *parameters.begin(); cmsys::RegularExpression targetValidator; - targetValidator.compile("^[A-Za-z0-9_]+$"); + targetValidator.compile("^[A-Za-z0-9_.-]+$"); if (!targetValidator.find(name.c_str())) { ::reportError(context, content->GetOriginalExpression(), |