From 7a0884f3ce81ced2b3e8a3afd8e7611eabf3be63 Mon Sep 17 00:00:00 2001 From: Eric Niebler Date: Fri, 3 Apr 2026 08:16:46 -0700 Subject: [PATCH] enable tests by default when stdexec is the top-level project --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index be59155fd..19a6bb16f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,8 +91,9 @@ rapids_cmake_build_type(Release) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules") -# Disable the tests by default unless it is the top level project and build testing was specified. -if (STDEXEC_MAIN_PROJECT AND BUILD_TESTING) +# Disable the tests by default unless it is the top level project or build testing was +# specified. +if (STDEXEC_MAIN_PROJECT OR BUILD_TESTING) set(STDEXEC_BUILD_TESTS_DEFAULT ON) else() set(STDEXEC_BUILD_TESTS_DEFAULT OFF)