-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup various little cmake things that were causing problems
- Loading branch information
1 parent
da8727f
commit 11f23b7
Showing
3 changed files
with
24 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,24 +10,32 @@ else() | |
message(status "CUDA::toolkit provided by parent package") | ||
endif() | ||
|
||
#======================================= | ||
# Setup Kokkos | ||
# - provides Kokkos::kokkos | ||
#======================================= | ||
if (SINGULARITY_USE_KOKKOS) | ||
if (NOT TARGET Kokkos::kokkos) | ||
message(status "Kokkos::kokkos must be found") | ||
if (SINGULARITY_KOKKOS_IN_TREE) | ||
message(status "Using in-tree Kokkos") | ||
add_subdirectory(utils/kokkos) | ||
else() | ||
message(status "Using system Kokkos if available") | ||
find_package(Kokkos REQUIRED) | ||
endif() | ||
else() | ||
message(status "Kokkos::kokkos provided by parent package") | ||
endif() | ||
endif() | ||
|
||
#======================================= | ||
# Setup ports of call | ||
# - provides PortsofCall::PortsofCall | ||
#======================================= | ||
find_package(PortsofCall REQUIRED) | ||
target_link_libraries(singularity-opac::flags INTERFACE PortsofCall::PortsofCall) | ||
|
||
#======================================= | ||
# Setup Kokkos | ||
# - provides Kokkos::kokkos | ||
#======================================= | ||
if (NOT TARGET Kokkos::kokkos) | ||
add_subdirectory(utils/kokkos) | ||
find_package(Kokkos QUIET) | ||
else() | ||
message(status "Kokkos::kokkos provided by parent package") | ||
endif() | ||
|
||
#======================================= | ||
# Find HDF5 | ||
# - [email protected]+ provides HDF5::HDF5, but | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters