File tree Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.14 )
1+ cmake_minimum_required (VERSION 3.24 )
22
33project ( AMReX-Tutorials
44 DESCRIPTION "Tutorials for the AMReX adaptive mesh refinement framework"
@@ -51,6 +51,14 @@ if( NOT DEFINED AMReX_DIR )
5151 set (AMReX_GIT_BRANCH "development" CACHE STRING "The AMReX branch to checkout" )
5252 set (AMReX_INSTALL "NO" CACHE INTERNAL "Disable install target for amrex" )
5353
54+ if (AMReX_FORTRAN)
55+ enable_language (Fortran)
56+ endif ()
57+
58+ if (AMReX_GPU_BACKEND STREQUAL "CUDA" )
59+ enable_language (CUDA)
60+ endif ()
61+
5462 include (FetchContent)
5563 set (FETCHCONTENT_QUIET OFF ) # Verbose ON
5664
@@ -164,10 +172,6 @@ endif ()
164172
165173 if (AMReX_GPU_BACKEND STREQUAL "CUDA" )
166174 enable_language (CUDA)
167- # AMReX 21.06+ supports CUDA_ARCHITECTURES
168- if (CMAKE_VERSION VERSION_LESS 3.20)
169- include (AMReX_SetupCUDA)
170- endif ()
171175 endif ()
172176 endif ()
173177else ()
@@ -178,10 +182,6 @@ else()
178182
179183 if (AMReX_GPU_BACKEND STREQUAL "CUDA" )
180184 enable_language (CUDA)
181- # AMReX 21.06+ supports CUDA_ARCHITECTURES
182- if (CMAKE_VERSION VERSION_LESS 3.20)
183- include (AMReX_SetupCUDA)
184- endif ()
185185 endif ()
186186endif ()
187187
Original file line number Diff line number Diff line change 2828# For additional CMake compile options see
2929# https://amrex-codes.github.io/amrex/docs_html/BuildingAMReX.html#building-with-cmake
3030
31- cmake_minimum_required (VERSION 3.16 )
31+ cmake_minimum_required (VERSION 3.24 )
3232
3333## Project name and source file languages
3434project (HeatEquation_EX0
Original file line number Diff line number Diff line change 2424# For additional CMake compile options see
2525# https://amrex-codes.github.io/amrex/docs_html/BuildingAMReX.html#building-with-cmake
2626
27- cmake_minimum_required (VERSION 3.16 )
27+ cmake_minimum_required (VERSION 3.24 )
2828
2929# Project name and source file languages
3030project (HeatEquation_Simple
Original file line number Diff line number Diff line change 2626
2727
2828
29- cmake_minimum_required (VERSION 3.16 )
29+ cmake_minimum_required (VERSION 3.24 )
3030
3131# Project name and source file language
3232project (HelloWorld
Original file line number Diff line number Diff line change 2626
2727
2828
29- cmake_minimum_required (VERSION 3.16 )
29+ cmake_minimum_required (VERSION 3.24 )
3030
3131# Project name and source file language
3232project (MultiFab
You can’t perform that action at this time.
0 commit comments