From 85e125322c0a1cd29f4bec87f5cb82b4dd266a61 Mon Sep 17 00:00:00 2001 From: Jon Rood Date: Tue, 17 Sep 2024 11:59:47 -0600 Subject: [PATCH] Avoid deprecation warning for AMReX_SetupCUDA. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f95ca6f8f..4acb91dd9 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 ()