summaryrefslogtreecommitdiffstats
path: root/Source/cmcmd.cxx
diff options
context:
space:
mode:
authorWouter Klouwen <wouter.klouwen@youview.com>2018-01-20 15:13:21 (GMT)
committerWouter Klouwen <wouter.klouwen@youview.com>2018-01-23 18:56:42 (GMT)
commite6a80ccfc440ac8dd5e9e5405744c2423560fc02 (patch)
tree22b68d9379421a8a84ff5dab35e9689654334b04 /Source/cmcmd.cxx
parentff62b00522d1ddaeb88be241ab4a022f935b5c00 (diff)
downloadCMake-e6a80ccfc440ac8dd5e9e5405744c2423560fc02.zip
CMake-e6a80ccfc440ac8dd5e9e5405744c2423560fc02.tar.gz
CMake-e6a80ccfc440ac8dd5e9e5405744c2423560fc02.tar.bz2
Make use of std::chrono throughout every component
This commit continues the changes made in CTest to support std::chrono by applying it throughout every component where a duration was used. No functional change intended.
Diffstat (limited to 'Source/cmcmd.cxx')
-rw-r--r--Source/cmcmd.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx
index 2c3bda2..70e4fde 100644
--- a/Source/cmcmd.cxx
+++ b/Source/cmcmd.cxx
@@ -3,6 +3,7 @@
#include "cmcmd.h"
#include "cmAlgorithms.h"
+#include "cmDuration.h"
#include "cmGlobalGenerator.h"
#include "cmLocalGenerator.h"
#include "cmMakefile.h"
@@ -797,10 +798,9 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string>& args)
std::string command =
cmWrap('"', cmMakeRange(args).advance(3), '"', " ");
int retval = 0;
- int timeout = 0;
if (cmSystemTools::RunSingleCommand(
command.c_str(), nullptr, nullptr, &retval, directory.c_str(),
- cmSystemTools::OUTPUT_PASSTHROUGH, timeout)) {
+ cmSystemTools::OUTPUT_PASSTHROUGH, cmDuration::zero())) {
return retval;
}