diff options
Diffstat (limited to 'Source/cmFindProgramCommand.cxx')
-rw-r--r-- | Source/cmFindProgramCommand.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmFindProgramCommand.cxx b/Source/cmFindProgramCommand.cxx index d40d7f9..1195ea8 100644 --- a/Source/cmFindProgramCommand.cxx +++ b/Source/cmFindProgramCommand.cxx @@ -91,7 +91,8 @@ bool cmFindProgramCommand::InitialPass(std::vector<std::string>& args) else { cmSystemTools::ExpandRegistryValues(args[j]); - path.push_back(args[j]); + // Glob the entry in case of wildcards. + cmSystemTools::GlobDirs(args[j].c_str(), path); } } } @@ -108,7 +109,9 @@ bool cmFindProgramCommand::InitialPass(std::vector<std::string>& args) std::string exp = args[j]; m_Makefile->ExpandVariablesInString(exp); cmSystemTools::ExpandRegistryValues(exp); - path.push_back(exp); + + // Glob the entry in case of wildcards. + cmSystemTools::GlobDirs(exp.c_str(), path); } } for(std::vector<std::string>::iterator i = names.begin(); |