diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-06-12 14:19:13 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-06-12 14:19:13 (GMT) |
commit | c64447c3686e22389c406fe987271149150dd93d (patch) | |
tree | 8d7e11d85d2b8e78e9fb24ae607231f1f2ce4e58 /Source/CTest | |
parent | e9c163762ef6ff298c40a5ee3eeeb45866b7fd9b (diff) | |
download | CMake-c64447c3686e22389c406fe987271149150dd93d.zip CMake-c64447c3686e22389c406fe987271149150dd93d.tar.gz CMake-c64447c3686e22389c406fe987271149150dd93d.tar.bz2 |
ENH: make sure working directory is set
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/cmCTestCoverageHandler.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestCoverageHandler.cxx b/Source/CTest/cmCTestCoverageHandler.cxx index d846851..2bfe6a3 100644 --- a/Source/CTest/cmCTestCoverageHandler.cxx +++ b/Source/CTest/cmCTestCoverageHandler.cxx @@ -80,8 +80,12 @@ public: } args.push_back(0); // null terminate cmsysProcess_SetCommand(this->Process, &*args.begin()); - cmsysProcess_SetWorkingDirectory(this->Process, - this->WorkingDirectory.c_str()); + if(this->WorkingDirectory.size()) + { + cmsysProcess_SetWorkingDirectory(this->Process, + this->WorkingDirectory.c_str()); + } + cmsysProcess_SetOption(this->Process, cmsysProcess_Option_HideWindow, 1); if(this->TimeOut != -1) |