Skip to content

Commit 2957ca9

Browse files
committed
build: have "make test" depend on "make all"
1 parent 39219fe commit 2957ca9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,12 @@ endif()
571571
if(BUILD_TESTS)
572572
enable_testing()
573573
endif()
574+
575+
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.29)
576+
# have "make test" depend on "make all"
577+
set(CMAKE_SKIP_TEST_ALL_DEPENDENCY FALSE)
578+
endif()
579+
574580
# TODO: The `CMAKE_SKIP_BUILD_RPATH` variable setting can be deleted
575581
# in the future after reordering Guix script commands to
576582
# perform binary checks after the installation step.

0 commit comments

Comments
 (0)