summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallFilesCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-08-01 20:12:43 (GMT)
committerBrad King <brad.king@kitware.com>2001-08-01 20:12:43 (GMT)
commitcaab013c9abc5a317d5a2bc9b680ed98e4c5871f (patch)
treedd6a5b2357113e511eac60f2ee54d0d5b4aad564 /Source/cmInstallFilesCommand.cxx
parent2c3a1729a35592482c1e9999a32941ca1b87f705 (diff)
downloadCMake-caab013c9abc5a317d5a2bc9b680ed98e4c5871f.zip
CMake-caab013c9abc5a317d5a2bc9b680ed98e4c5871f.tar.gz
CMake-caab013c9abc5a317d5a2bc9b680ed98e4c5871f.tar.bz2
BUG: Need to expand variables when a regular expression is specified.
Diffstat (limited to 'Source/cmInstallFilesCommand.cxx')
-rw-r--r--Source/cmInstallFilesCommand.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmInstallFilesCommand.cxx b/Source/cmInstallFilesCommand.cxx
index d7f68e5..8a0e132 100644
--- a/Source/cmInstallFilesCommand.cxx
+++ b/Source/cmInstallFilesCommand.cxx
@@ -113,8 +113,10 @@ void cmInstallFilesCommand::FinalPass()
else // reg exp list
{
std::vector<std::string> files;
+ std::string regex = m_FinalArgs[0].c_str();
+ m_Makefile->ExpandVariablesInString(regex);
cmSystemTools::Glob(m_Makefile->GetCurrentDirectory(),
- m_FinalArgs[0].c_str(), files);
+ regex.c_str(), files);
std::vector<std::string>::iterator s = files.begin();
// for each argument, get the files