diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-09-20 17:44:27 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-09-20 17:44:27 (GMT) |
commit | b9d56e8497b26485d6ea56fa5b781f24260f2038 (patch) | |
tree | 5101847b08cd1ef64d2574fbc0ccdf6f5b4fb14a | |
parent | 92fd242789781ed353a7ed1916e14c1cd1b32c39 (diff) | |
download | CMake-b9d56e8497b26485d6ea56fa5b781f24260f2038.zip CMake-b9d56e8497b26485d6ea56fa5b781f24260f2038.tar.gz CMake-b9d56e8497b26485d6ea56fa5b781f24260f2038.tar.bz2 |
BUG: make a copy of the arguments before passing them to Execute
-rw-r--r-- | Source/cmMakefile.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 64d3e69..d58f72d 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -336,14 +336,16 @@ bool cmMakefile::ReadListFile(const char* filename, const char* external) // add this list file to the list of dependencies m_ListFiles.push_back( filenametoread); const int numberFunctions = lf->m_Functions.size(); + std::vector<std::string> argumentsCopy; for(int i =0; i < numberFunctions; ++i) { cmListFileFunction& curFunction = lf->m_Functions[i]; if(!this->IsFunctionBlocked(curFunction.m_Name.c_str(), curFunction.m_Arguments)) { + argumentsCopy = curFunction.m_Arguments; this->ExecuteCommand(curFunction.m_Name, - curFunction.m_Arguments); + argumentsCopy); } } |