diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2002-01-18 16:48:16 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2002-01-18 16:48:16 (GMT) |
commit | 6d1a312c7b9fb89d1f3e1da992941fec2e4df7ac (patch) | |
tree | 43bf9a58da2e35b691e5fda22e7d9ac667482573 /Source | |
parent | 1ccaa434cee75888ab2bd5611ff69c673803136e (diff) | |
download | CMake-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.cxx | 4 |
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 "; |