summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorfriendlyanon <friendlyanon_@hotmail.com>2021-05-01 14:05:19 (GMT)
committerfriendlyanon <friendlyanon_@hotmail.com>2021-05-01 14:08:21 (GMT)
commit4dd4e9dd6ce5efd9bb9bbb784816167a8b5873ae (patch)
tree7132734ea5535208e7a64f5fb927a0d3d69197ad /Source/cmGlobalGenerator.cxx
parenta51ad60687ecc9cb9e5f58099d0c19c8f3db2629 (diff)
downloadCMake-4dd4e9dd6ce5efd9bb9bbb784816167a8b5873ae.zip
CMake-4dd4e9dd6ce5efd9bb9bbb784816167a8b5873ae.tar.gz
CMake-4dd4e9dd6ce5efd9bb9bbb784816167a8b5873ae.tar.bz2
cmGlobalGenerator: Add parallel parameter to GenerateCMakeBuildCommand
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index ab76260..55fba79 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -2077,7 +2077,7 @@ bool cmGlobalGenerator::Open(const std::string& bindir,
std::string cmGlobalGenerator::GenerateCMakeBuildCommand(
const std::string& target, const std::string& config,
- const std::string& native, bool ignoreErrors)
+ const std::string& parallel, const std::string& native, bool ignoreErrors)
{
std::string makeCommand = cmSystemTools::GetCMakeCommand();
makeCommand =
@@ -2087,6 +2087,11 @@ std::string cmGlobalGenerator::GenerateCMakeBuildCommand(
makeCommand += config;
makeCommand += "\"";
}
+ if (!parallel.empty()) {
+ makeCommand += " --parallel \"";
+ makeCommand += parallel;
+ makeCommand += "\"";
+ }
if (!target.empty()) {
makeCommand += " --target \"";
makeCommand += target;