summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionEvaluator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-09-20 10:12:00 (GMT)
committerStephen Kelly <steveire@gmail.com>2012-09-20 10:13:33 (GMT)
commitfb578c8635b3c09f4a838c2ec9c671d9f1be34cd (patch)
tree834a760e90ba36bff002dfbbbaa7afa2c96ac2e3 /Source/cmGeneratorExpressionEvaluator.cxx
parentd407dcdbc824688510837ec85bb2e3c85cf096bd (diff)
downloadCMake-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.cxx2
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(),