Skip to content

Commit

Permalink
export the Catch2 and Kokkos version variables up a level so that the…
Browse files Browse the repository at this point in the history
… config_summary machinery can find them
  • Loading branch information
BrendanKKrueger committed Nov 19, 2024
1 parent 0db70bf commit bf4fdb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit bf4fdb3

Please sign in to comment.