diff --git a/CMakeLists.txt b/CMakeLists.txt index f95ca6f8..4acb91dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 ()