File tree 5 files changed +13
-13
lines changed
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 )
2
2
3
3
project ( AMReX-Tutorials
4
4
DESCRIPTION "Tutorials for the AMReX adaptive mesh refinement framework"
@@ -51,6 +51,14 @@ if( NOT DEFINED AMReX_DIR )
51
51
set (AMReX_GIT_BRANCH "development" CACHE STRING "The AMReX branch to checkout" )
52
52
set (AMReX_INSTALL "NO" CACHE INTERNAL "Disable install target for amrex" )
53
53
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
+
54
62
include (FetchContent)
55
63
set (FETCHCONTENT_QUIET OFF ) # Verbose ON
56
64
@@ -164,10 +172,6 @@ endif ()
164
172
165
173
if (AMReX_GPU_BACKEND STREQUAL "CUDA" )
166
174
enable_language (CUDA)
167
- # AMReX 21.06+ supports CUDA_ARCHITECTURES
168
- if (CMAKE_VERSION VERSION_LESS 3.20)
169
- include (AMReX_SetupCUDA)
170
- endif ()
171
175
endif ()
172
176
endif ()
173
177
else ()
@@ -178,10 +182,6 @@ else()
178
182
179
183
if (AMReX_GPU_BACKEND STREQUAL "CUDA" )
180
184
enable_language (CUDA)
181
- # AMReX 21.06+ supports CUDA_ARCHITECTURES
182
- if (CMAKE_VERSION VERSION_LESS 3.20)
183
- include (AMReX_SetupCUDA)
184
- endif ()
185
185
endif ()
186
186
endif ()
187
187
Original file line number Diff line number Diff line change 28
28
# For additional CMake compile options see
29
29
# https://amrex-codes.github.io/amrex/docs_html/BuildingAMReX.html#building-with-cmake
30
30
31
- cmake_minimum_required (VERSION 3.16 )
31
+ cmake_minimum_required (VERSION 3.24 )
32
32
33
33
## Project name and source file languages
34
34
project (HeatEquation_EX0
Original file line number Diff line number Diff line change 24
24
# For additional CMake compile options see
25
25
# https://amrex-codes.github.io/amrex/docs_html/BuildingAMReX.html#building-with-cmake
26
26
27
- cmake_minimum_required (VERSION 3.16 )
27
+ cmake_minimum_required (VERSION 3.24 )
28
28
29
29
# Project name and source file languages
30
30
project (HeatEquation_Simple
Original file line number Diff line number Diff line change 26
26
27
27
28
28
29
- cmake_minimum_required (VERSION 3.16 )
29
+ cmake_minimum_required (VERSION 3.24 )
30
30
31
31
# Project name and source file language
32
32
project (HelloWorld
Original file line number Diff line number Diff line change 26
26
27
27
28
28
29
- cmake_minimum_required (VERSION 3.16 )
29
+ cmake_minimum_required (VERSION 3.24 )
30
30
31
31
# Project name and source file language
32
32
project (MultiFab
You can’t perform that action at this time.
0 commit comments