-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retain the original path to Kokkos and ArborX #723
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -12,14 +12,24 @@ | |||||||||
include(CMakeFindDependencyMacro) | ||||||||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}" ) | ||||||||||
list(APPEND CMAKE_PREFIX_PATH @CMAKE_PREFIX_PATH@) | ||||||||||
find_dependency(Kokkos REQUIRED) | ||||||||||
find_package(Kokkos QUIET) | ||||||||||
if(NOT Kokkos_FOUND) | ||||||||||
# If Kokkos was not found, try to use Kokkos used when building Cabana | ||||||||||
set(Kokkos_DIR @Kokkos_DIR@) | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
So the user can still overwrite it if needed. |
||||||||||
find_dependency(Kokkos) | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
endif() | ||||||||||
set(Cabana_ENABLE_MPI @Cabana_ENABLE_MPI@) | ||||||||||
if(Cabana_ENABLE_MPI) | ||||||||||
find_dependency(MPI REQUIRED CXX) | ||||||||||
endif() | ||||||||||
set(Cabana_ENABLE_ARBORX @Cabana_ENABLE_ARBORX@) | ||||||||||
if(Cabana_ENABLE_ARBORX) | ||||||||||
find_dependency(ArborX REQUIRED) | ||||||||||
find_package(ArborX QUIET) | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
if(NOT ArborX_FOUND) | ||||||||||
# If ArborX was not found, try to use ArborX used when building Cabana | ||||||||||
set(ArborX_DIR @ArborX_DIR@) | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
find_dependency(ArborX) | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
endif() | ||||||||||
endif() | ||||||||||
set(Cabana_ENABLE_GRID @Cabana_ENABLE_GRID@) | ||||||||||
set(Cabana_ENABLE_CAJITA @Cabana_ENABLE_CAJITA@) # FIXME: remove in next release | ||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
find_dependency
handlesQUIET
automatically.