Skip to content

Commit

Permalink
CMake: Prebuild & SetupCUDA (AMReX-Codes#2209)
Browse files Browse the repository at this point in the history
## Summary

With CMake 3.20+, we don't need to include the `SetupCUDA.cmake` scripts anymore.

## Additional background

Follow-up to AMReX-Codes#2012
  • Loading branch information
ax3l authored Aug 2, 2021
1 parent 2695be7 commit ee8f682
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Tools/CMake/AMReXConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,11 @@ endif ()
#
# CUDA
#
if (@AMReX_CUDA@)
include(AMReX_SetupCUDA)
# AMReX 21.06+ supports CUDA_ARCHITECTURES
if(CMAKE_VERSION VERSION_LESS 3.20)
if (@AMReX_CUDA@)
include(AMReX_SetupCUDA)
endif ()
endif ()

include( "${CMAKE_CURRENT_LIST_DIR}/AMReXTargets.cmake" )
Expand Down

0 comments on commit ee8f682

Please sign in to comment.