Skip to content

Commit

Permalink
Avoid deprecation warning for AMReX_SetupCUDA (#150)
Browse files Browse the repository at this point in the history
Alternatively the minimum CMake version could be moved to 3.20.
  • Loading branch information
jrood-nrel authored Sep 17, 2024
1 parent 681640d commit 3ab9864
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ if (HYDRO_GPU_BACKEND STREQUAL "CUDA")
if(POLICY CMP0104)
cmake_policy(SET CMP0104 OLD)
endif()
include(AMReX_SetupCUDA)
if (CMAKE_VERSION VERSION_LESS 3.20)
include(AMReX_SetupCUDA)
endif()
include(AMReXTargetHelpers)
endif ()

Expand Down

0 comments on commit 3ab9864

Please sign in to comment.