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)