summaryrefslogtreecommitdiff
path: root/Source/cmFindPathCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-09-20 10:54:29 -0400
committerBrad King <brad.king@kitware.com>2001-09-20 10:54:29 -0400
commit65ef85320a900c620f235fddc17ae2a6068ec75d (patch)
tree8dc6841de28a34c7536bff6bdf8d217c9f92d8f2 /Source/cmFindPathCommand.cxx
parentee86c59cba8884879e94361044dd8d4359abfd6e (diff)
downloadcmake-65ef85320a900c620f235fddc17ae2a6068ec75d.tar.gz
ENH: Added cmSystemTools::GlobDirs function to allow wildcards in paths (like /foo/bar/*).
Diffstat (limited to 'Source/cmFindPathCommand.cxx')
-rw-r--r--Source/cmFindPathCommand.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmFindPathCommand.cxx b/Source/cmFindPathCommand.cxx
index cd73ea19df..7b0550cc3c 100644
--- a/Source/cmFindPathCommand.cxx
+++ b/Source/cmFindPathCommand.cxx
@@ -68,8 +68,10 @@ bool cmFindPathCommand::InitialPass(std::vector<std::string>& args)
// expand variables
std::string exp = args[j];
m_Makefile->ExpandVariablesInString(exp);
- cmSystemTools::ExpandRegistryValues(exp);
- path.push_back(exp);
+ cmSystemTools::ExpandRegistryValues(exp);
+
+ // Glob the entry in case of wildcards.
+ cmSystemTools::GlobDirs(exp.c_str(), path);
}
// add the standard path