diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2019-03-05 18:20:29 (GMT) |
---|---|---|
committer | Gregor Jasny <gjasny@googlemail.com> | 2019-03-05 18:20:29 (GMT) |
commit | 1166aa5ce784a07ca2ce7d750f11ed174562bdc6 (patch) | |
tree | 35dd486d2f8a6ea1a8f023bde8f548a14eb0432b /Source/CTest/cmProcess.cxx | |
parent | 451d3907fdb0eea70f1107712324300d786433d7 (diff) | |
download | CMake-1166aa5ce784a07ca2ce7d750f11ed174562bdc6.zip CMake-1166aa5ce784a07ca2ce7d750f11ed174562bdc6.tar.gz CMake-1166aa5ce784a07ca2ce7d750f11ed174562bdc6.tar.bz2 |
ctest: refactor some code
Diffstat (limited to 'Source/CTest/cmProcess.cxx')
-rw-r--r-- | Source/CTest/cmProcess.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/CTest/cmProcess.cxx b/Source/CTest/cmProcess.cxx index cd2e2f7..bfe8d70 100644 --- a/Source/CTest/cmProcess.cxx +++ b/Source/CTest/cmProcess.cxx @@ -73,7 +73,7 @@ cmProcess::cmProcess(cmCTestRunTest& runner) cmProcess::~cmProcess() = default; -void cmProcess::SetCommand(const char* command) +void cmProcess::SetCommand(std::string const& command) { this->Command = command; } @@ -83,6 +83,11 @@ void cmProcess::SetCommandArguments(std::vector<std::string> const& args) this->Arguments = args; } +void cmProcess::SetWorkingDirectory(std::string const& dir) +{ + this->WorkingDirectory = dir; +} + bool cmProcess::StartProcess(uv_loop_t& loop, std::vector<size_t>* affinity) { this->ProcessState = cmProcess::State::Error; |