)
set(${var} FALSE)
endif()
+
+ list(APPEND CMAKE_REQUIRED_LIBRARIES
+ ArborX::ArborX
+ )
+
+ check_cxx_compiler_bug(
+ "
+ #include <ArborX.hpp>
+ int main() {
+ Kokkos::View<ArborX::Point*, Kokkos::HostSpace> points(\"points\", 0);
+ [[maybe_unused]] ArborX::BVH<Kokkos::HostSpace> bvh(Kokkos::DefaultExecutionSpace{}, points);
+ }
+ "
+ DEAL_II_ARBORX_CXX20_BUG)
+ reset_cmake_required()
+
+ if(DEAL_II_ARBORX_CXX20_BUG)
+ message(STATUS "Could not find a sufficient ArborX installation: "
+ "The ArborX version doesn't work with C++20 or higher."
+ )
+ set(ARBORX_ADDITIONAL_ERROR_STRING
+ ${ARBORX_ADDITIONAL_ERROR_STRING}
+ "Could not find a sufficient ArborX installation:\n"
+ "The ArborX version doesn't work with C++20 or higher. Try using a later ArborX release or try specifying a lower C++ standard.\n"
+ )
+ set(${var} FALSE)
+ endif()
endif()
set(DEAL_II_ARBORX_WITH_MPI ${ARBORX_WITH_MPI})