mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-04 04:03:22 +03:00
cmake install: Allow no spaces between j and parallel count
This commit is contained in:
1 parent
27099b79be
commit
def035dafd
4 files changed
+23
-1
No files matched your search
@@ -0,0 +1,5 @@
|
||||
cmake-install-j-no-space
|
||||
------------------------
|
||||
|
||||
* :option:`cmake --install` now accepts ``-j<N>`` in addition to ``-j <N>``
|
||||
for specifying the number of parallel jobs.
|
||||
@@ -840,7 +840,8 @@ int do_install(int ac, char const* const* av)
|
||||
CommandArgument{
|
||||
"--default-directory-permissions", CommandArgument::Values::One,
|
||||
CommandArgument::setToValue(defaultDirectoryPermissions) },
|
||||
CommandArgument{ "-j", CommandArgument::Values::One, jLambda },
|
||||
CommandArgument{ "-j", CommandArgument::Values::One,
|
||||
CommandArgument::RequiresSeparator::No, jLambda },
|
||||
CommandArgument{ "--parallel", CommandArgument::Values::One,
|
||||
parallelLambda },
|
||||
CommandArgument{ "--prefix", CommandArgument::Values::One,
|
||||
|
||||
@@ -48,6 +48,7 @@ function(install_test test)
|
||||
endfunction()
|
||||
|
||||
install_test(parallel PARALLEL ARGS "-j 4")
|
||||
install_test(parallel-no-space PARALLEL ARGS "-j4")
|
||||
install_test(no-parallel ARGS "-j 4")
|
||||
install_test(out-of-date-json TOUCH_CACHE PARALLEL ARGS "-j 4")
|
||||
install_test(component PARALLEL ARGS "-j 4" COMPONENT "ALPHANUMERIC123")
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
\[1\/5\] .*
|
||||
\-\- Installing:[^
|
||||
]*
|
||||
\[2\/5\] .*
|
||||
\-\- Installing:[^
|
||||
]*
|
||||
\[3\/5\] .*
|
||||
\-\- Installing:[^
|
||||
]*
|
||||
\[4\/5\] .*
|
||||
\-\- Installing:[^
|
||||
]*
|
||||
\[5\/5\] .*
|
||||
\-\- Installing:[^
|
||||
]*
|
||||
Reference in new issue
Block a user