summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2002-01-18 16:48:16 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2002-01-18 16:48:16 (GMT)
commit6d1a312c7b9fb89d1f3e1da992941fec2e4df7ac (patch)
tree43bf9a58da2e35b691e5fda22e7d9ac667482573 /Source
parent1ccaa434cee75888ab2bd5611ff69c673803136e (diff)
downloadCMake-6d1a312c7b9fb89d1f3e1da992941fec2e4df7ac.zip
CMake-6d1a312c7b9fb89d1f3e1da992941fec2e4df7ac.tar.gz
CMake-6d1a312c7b9fb89d1f3e1da992941fec2e4df7ac.tar.bz2
Fix bug: was expanding second arg even if not passed. crashed
Diffstat (limited to 'Source')
-rw-r--r--Source/cmExecProgramCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmExecProgramCommand.cxx b/Source/cmExecProgramCommand.cxx
index 0b8c85d..ab2d676 100644
--- a/Source/cmExecProgramCommand.cxx
+++ b/Source/cmExecProgramCommand.cxx
@@ -51,10 +51,10 @@ bool cmExecProgramCommand::InitialPass(std::vector<std::string> const& argsIn)
return false;
}
std::string output;
- m_Makefile->ExpandVariablesInString(args[0]);
- m_Makefile->ExpandVariablesInString(args[1]);
+ m_Makefile->ExpandVariablesInString(args[0]);
if(args.size() == 2)
{
+ m_Makefile->ExpandVariablesInString(args[1]);
cmSystemTools::MakeDirectory(args[1].c_str());
std::string command;
command = "cd ";