Skip to content

Commit 1c2e6aa

Browse files
committed
CMake: 3.24+
1 parent 2dfd180 commit 1c2e6aa

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

Diff for: ExampleCodes/CMakeLists.txt

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.14)
1+
cmake_minimum_required(VERSION 3.24)
22

33
project( 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()
173177
else()
@@ -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()
186186
endif()
187187

Diff for: GuidedTutorials/HeatEquation/Exec/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
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
3434
project(HeatEquation_EX0

Diff for: GuidedTutorials/HeatEquation_Simple/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
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
3030
project(HeatEquation_Simple

Diff for: GuidedTutorials/HelloWorld/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
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
3232
project(HelloWorld

Diff for: GuidedTutorials/MultiFab/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
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
3232
project(MultiFab

0 commit comments

Comments
 (0)