mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00
Merge topic 'doc-ctest-env-whitespace'
597e421ba3
Help: Remove incorrect Windows env var limitation from CTEST_PARALLEL_LEVEL
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11297
This commit is contained in:
@@ -14,7 +14,6 @@ up to 8 tests concurrently as if ``ctest`` were invoked with the
|
||||
parallelism, or unbounded parallelism, respectively, as documented by
|
||||
the :option:`ctest --parallel` option.
|
||||
|
||||
On Windows, environment variables cannot be set to an empty string.
|
||||
CTest will interpret a whitespace-only string as empty.
|
||||
|
||||
In CMake 3.28 and earlier, an empty or ``0`` value was equivalent to ``1``.
|
||||
|
@@ -63,6 +63,7 @@ run_ctest_test(Parallel4 INCLUDE test PARALLEL_LEVEL 4)
|
||||
set(ENV{CTEST_PARALLEL_LEVEL} bad)
|
||||
run_ctest_test(ParallelEnvBad INCLUDE test)
|
||||
if(CMAKE_HOST_WIN32)
|
||||
# FIXME(#27285): `set(ENV{VAR} "")` unsets VAR on Windows.
|
||||
set(ENV{CTEST_PARALLEL_LEVEL} " ")
|
||||
else()
|
||||
set(ENV{CTEST_PARALLEL_LEVEL} "")
|
||||
|
Reference in New Issue
Block a user