summaryrefslogtreecommitdiffstats
path: root/Source/cmake.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-05-29 14:02:09 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-05-29 14:05:09 (GMT)
commitf248f8ad7898816a5a627e288d3a04fed993967f (patch)
tree39474bb70be2d89d344e55ba4aa5def19905ee28 /Source/cmake.h
parent42752d0c11df67a9ca4f5e71efa58965c58552f8 (diff)
parent1ab3881ec9e809ac5f6cad5cd84048310b8683e2 (diff)
downloadCMake-f248f8ad7898816a5a627e288d3a04fed993967f.zip
CMake-f248f8ad7898816a5a627e288d3a04fed993967f.tar.gz
CMake-f248f8ad7898816a5a627e288d3a04fed993967f.tar.bz2
Merge topic 'parallel_build_option'
1ab3881ec9 cmake: Add options for parallel builds to --build mode Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Henry Schreiner <henryschreineriii@gmail.com> Merge-request: !1962
Diffstat (limited to 'Source/cmake.h')
-rw-r--r--Source/cmake.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmake.h b/Source/cmake.h
index dafe622..53c2f45 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -119,6 +119,9 @@ public:
typedef std::map<std::string, cmInstalledFile> InstalledFilesMap;
+ static const int NO_BUILD_PARALLEL_LEVEL = -1;
+ static const int DEFAULT_BUILD_PARALLEL_LEVEL = 0;
+
/// Default constructor
cmake(Role role);
/// Destructor
@@ -430,7 +433,7 @@ public:
cmListFileBacktrace const& backtrace = cmListFileBacktrace()) const;
///! run the --build option
- int Build(const std::string& dir, const std::string& target,
+ int Build(int jobs, const std::string& dir, const std::string& target,
const std::string& config,
const std::vector<std::string>& nativeOptions, bool clean);