]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: disable Catch2 tests when Catch2 is unavailable 69374/head
authorSun Yuechi <sunyuechi@iscas.ac.cn>
Wed, 10 Jun 2026 00:13:53 +0000 (08:13 +0800)
committerSun Yuechi <sunyuechi@iscas.ac.cn>
Wed, 10 Jun 2026 00:17:59 +0000 (08:17 +0800)
commit4a7ac0060116ec1eb49e5e803d1e174be388522e
treee96735abdd427248d3ee67cd41518790cb3ec60a
parent56253c4ae02ecffcf878f5046839991f3e7b0d0e
cmake: disable Catch2 tests when Catch2 is unavailable

debhelper on noble passes -DFETCHCONTENT_FULLY_DISCONNECTED=ON, so CPM
cannot fetch Catch2 and silently skips it, leaving no Catch2 targets
behind and breaking the generate step. Fall back to WITH_CATCH2=OFF
with a warning instead.

Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
CMakeLists.txt