From 2957ca9611916efb570d157b9c7a0b188161660d Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Tue, 1 Oct 2024 18:41:40 +0000 Subject: [PATCH] build: have "make test" depend on "make all" --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ae988ac904..9d0d8a112c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -571,6 +571,12 @@ endif() if(BUILD_TESTS) enable_testing() endif() + +if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.29) + # have "make test" depend on "make all" + set(CMAKE_SKIP_TEST_ALL_DEPENDENCY FALSE) +endif() + # TODO: The `CMAKE_SKIP_BUILD_RPATH` variable setting can be deleted # in the future after reordering Guix script commands to # perform binary checks after the installation step.