From bf4fdb3e2794a15cf8e3e6f2cb28299025224741 Mon Sep 17 00:00:00 2001 From: "Brendan K. Krueger" Date: Tue, 19 Nov 2024 09:01:49 -0700 Subject: [PATCH] export the Catch2 and Kokkos version variables up a level so that the config_summary machinery can find them --- test/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index ad8bba83..733458c5 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -12,6 +12,7 @@ if(NOT TARGET Catch2::Catch2) find_package(Catch2 QUIET) + set(Catch2_VERSION ${Catch2_VERSION} PARENT_SCOPE) if(NOT Catch2_FOUND) message(STATUS "Fetching Catch2 as needed") include(FetchContent) @@ -32,6 +33,7 @@ add_library(portsofcall_iface INTERFACE) if (PORTS_OF_CALL_TEST_PORTABILITY_STRATEGY STREQUAL "Kokkos") if(NOT TARGET Kokkos::kokkos) find_package(Kokkos QUIET) + set(Kokkos_VERSION ${Kokkos_VERSION} PARENT_SCOPE) if(NOT Kokkos_FOUND) message(STATUS "Fetching Kokkos as needed") include(FetchContent)