From 6d1a312c7b9fb89d1f3e1da992941fec2e4df7ac Mon Sep 17 00:00:00 2001 From: Sebastien Barre Date: Fri, 18 Jan 2002 11:48:16 -0500 Subject: [PATCH] Fix bug: was expanding second arg even if not passed. crashed --- Source/cmExecProgramCommand.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmExecProgramCommand.cxx b/Source/cmExecProgramCommand.cxx index 0b8c85d9d..ab2d676f1 100644 --- a/Source/cmExecProgramCommand.cxx +++ b/Source/cmExecProgramCommand.cxx @@ -51,10 +51,10 @@ bool cmExecProgramCommand::InitialPass(std::vector 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 ";