Skip to content

Commit

Permalink
Workaround to compile ArborX with Trilinos 14.0 (#885)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rombur authored Jun 5, 2023
1 parent 10440a4 commit 07947cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
cmake_minimum_required(VERSION 3.16)
project(ArborX CXX)

find_package(Kokkos 3.7.01 REQUIRED CONFIG)
# Workaround to compile against Trilinos 14.0. That version of Trilinos does not
# set the compatibility mode for Kokkos correctly.
find_package(Kokkos QUIET 3.7.01 CONFIG)
if (NOT Kokkos_FOUND)
find_package(Kokkos 4.0.00 REQUIRED CONFIG)
endif()
message(STATUS "Found Kokkos: ${Kokkos_DIR} (version \"${Kokkos_VERSION}\")")
if(Kokkos_ENABLE_CUDA)
kokkos_check(OPTIONS CUDA_LAMBDA)
Expand Down

0 comments on commit 07947cf

Please sign in to comment.