ECP-copa / Cabana

Performance-portable library for particle-based simulations
Other
188 stars 51 forks source link

Retain the original path to Kokkos and ArborX #723

Open aprokop opened 5 months ago

aprokop commented 5 months ago

Downstream Cabana libraries require specifying Kokkos_ROOT and ArborX_ROOT right now. This PR allows users to skip that and try to use the directories used during the build. I've only done these two because that's what I tested, but it could be expanded to all others.

Similar approach was hardcoded in Cabana at some point, but was removed in #244.

streeve commented 5 months ago

How do you mean we require *_ROOT? I generally just pass the Cabana path in CMAKE_PREFIX_PATH to build an app and Kokkos/ArborX are found just fine. Is this a CMake version thing?