Skip to content

Commit 9084dd5

Browse files
authored
Merge pull request #1986 from ericniebler/cmake-build-testing-logic
enable tests by default when stdexec is the top-level project
2 parents 3680678 + 7a0884f commit 9084dd5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ rapids_cmake_build_type(Release)
9191

9292
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules")
9393

94-
# Disable the tests by default unless it is the top level project and build testing was specified.
95-
if (STDEXEC_MAIN_PROJECT AND BUILD_TESTING)
94+
# Disable the tests by default unless it is the top level project or build testing was
95+
# specified.
96+
if (STDEXEC_MAIN_PROJECT OR BUILD_TESTING)
9697
set(STDEXEC_BUILD_TESTS_DEFAULT ON)
9798
else()
9899
set(STDEXEC_BUILD_TESTS_DEFAULT OFF)

0 commit comments

Comments
 (0)