summaryrefslogtreecommitdiff
path: root/Source/cmFindFileCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-03-05 18:41:24 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2002-03-05 18:41:24 -0500
commit4651dbcfc64836988649c2ca7e3e30c811723eb2 (patch)
tree78393201554f92b9e59bc8c5893f6e28a2ab2dbb /Source/cmFindFileCommand.cxx
parent2b9140f6b512784f65dfa58ff1b9076fd6f9227d (diff)
downloadcmake-4651dbcfc64836988649c2ca7e3e30c811723eb2.tar.gz
ENH: expand variables in arguments before the commands get them
Diffstat (limited to 'Source/cmFindFileCommand.cxx')
-rw-r--r--Source/cmFindFileCommand.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/cmFindFileCommand.cxx b/Source/cmFindFileCommand.cxx
index 10475e5f98..6ef0cbfa3d 100644
--- a/Source/cmFindFileCommand.cxx
+++ b/Source/cmFindFileCommand.cxx
@@ -65,11 +65,8 @@ bool cmFindFileCommand::InitialPass(std::vector<std::string> const& argsIn)
// add any user specified paths
for (unsigned int j = 2; j < args.size(); j++)
{
- // expand variables
- std::string exp = args[j];
- m_Makefile->ExpandVariablesInString(exp);
// Glob the entry in case of wildcards.
- cmSystemTools::GlobDirs(exp.c_str(), path);
+ cmSystemTools::GlobDirs(args[j].c_str(), path);
}
// add the standard path