diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-29 19:20:32 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-29 19:20:32 (GMT) |
commit | 7d76de4403480dc607261c5a1067a24c667faeeb (patch) | |
tree | 4e5d4464a62b46cb6f0b151f481634259aa4b895 /Source/cmSystemTools.cxx | |
parent | 0223ba91f3aad2014df152612a805d3feb676ddb (diff) | |
download | CMake-7d76de4403480dc607261c5a1067a24c667faeeb.zip CMake-7d76de4403480dc607261c5a1067a24c667faeeb.tar.gz CMake-7d76de4403480dc607261c5a1067a24c667faeeb.tar.bz2 |
make sure ; expansion is done in all commands
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 6f34c8e..2e330fc 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1045,10 +1045,16 @@ bool RunCommandViaSystem(const char* command, cmSystemTools::RemoveFile(tempFile.c_str()); return false; } + bool multiLine = false; while(fin) { fin.getline(buffer, BUFFER_SIZE); output += buffer; + if(multiLine) + { + output += "\n"; + } + multiLine = true; } fin.close(); cmSystemTools::RemoveFile(tempFile.c_str()); @@ -1609,8 +1615,7 @@ void cmSystemTools::GlobDirs(const char *fullPath, void cmSystemTools::ExpandListArguments(std::vector<std::string> const& arguments, - std::vector<std::string>& newargs, - bool ignore_empty) + std::vector<std::string>& newargs) { std::vector<std::string>::const_iterator i; for(i = arguments.begin();i != arguments.end(); ++i) @@ -1631,7 +1636,7 @@ void cmSystemTools::ExpandListArguments(std::vector<std::string> const& argument { len = i->size()-start; } - if (ignore_empty == false || len > 0) + if (len > 0) { newargs.push_back(i->substr(start, len)); } |