]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: make GTEST_PARALLEL_COMMAND visible to all test directories 69601/head
authorSun Yuechi <sunyuechi@iscas.ac.cn>
Fri, 19 Jun 2026 06:38:10 +0000 (14:38 +0800)
committerSun Yuechi <sunyuechi@iscas.ac.cn>
Fri, 19 Jun 2026 15:09:22 +0000 (23:09 +0800)
commit0705c6d60b152bc5e705ddf3b35f5f7dc0a33259
tree48e5bdffe6add8398df1973651038d6c48527a58
parent0bdeb61ac7f992113cb42035a2f0e18dca286121
cmake: make GTEST_PARALLEL_COMMAND visible to all test directories

GTEST_PARALLEL_COMMAND was set as an ordinary variable inside the
`if(NOT TARGET gtest-parallel_ext)` guard, so it only existed in the
first directory that include()s AddCephTest (src/common/options). Later
includes skip the guarded block and leave it empty, so PARALLEL
unittests under src/test silently ran serially.

Promote it to CACHE INTERNAL so it is visible across all directories
regardless of include order.

Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
cmake/modules/AddCephTest.cmake