diff options
author | friendlyanon <friendlyanon_@hotmail.com> | 2021-05-01 14:05:19 (GMT) |
---|---|---|
committer | friendlyanon <friendlyanon_@hotmail.com> | 2021-05-01 14:08:21 (GMT) |
commit | 4dd4e9dd6ce5efd9bb9bbb784816167a8b5873ae (patch) | |
tree | 7132734ea5535208e7a64f5fb927a0d3d69197ad /Source/cmGlobalGenerator.cxx | |
parent | a51ad60687ecc9cb9e5f58099d0c19c8f3db2629 (diff) | |
download | CMake-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.cxx | 7 |
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; |