Skip to content

Commit

Permalink
CMake: 3.24+
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Aug 30, 2024
1 parent 31ac1ec commit 739945c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 13 deletions.
10 changes: 1 addition & 9 deletions ExampleCodes/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.24)

project( AMReX-Tutorials
DESCRIPTION "Tutorials for the AMReX adaptive mesh refinement framework"
Expand Down Expand Up @@ -164,10 +164,6 @@ endif ()

if(AMReX_GPU_BACKEND STREQUAL "CUDA")
enable_language(CUDA)
# AMReX 21.06+ supports CUDA_ARCHITECTURES
if(CMAKE_VERSION VERSION_LESS 3.20)
include(AMReX_SetupCUDA)
endif()
endif()
endif()
else()
Expand All @@ -178,10 +174,6 @@ else()

if(AMReX_GPU_BACKEND STREQUAL "CUDA")
enable_language(CUDA)
# AMReX 21.06+ supports CUDA_ARCHITECTURES
if(CMAKE_VERSION VERSION_LESS 3.20)
include(AMReX_SetupCUDA)
endif()
endif()
endif()

Expand Down
2 changes: 1 addition & 1 deletion GuidedTutorials/HeatEquation/Exec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# For additional CMake compile options see
# https://amrex-codes.github.io/amrex/docs_html/BuildingAMReX.html#building-with-cmake

cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.24)

## Project name and source file languages
project(HeatEquation_EX0
Expand Down
2 changes: 1 addition & 1 deletion GuidedTutorials/HeatEquation_Simple/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# For additional CMake compile options see
# https://amrex-codes.github.io/amrex/docs_html/BuildingAMReX.html#building-with-cmake

cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.24)

# Project name and source file languages
project(HeatEquation_Simple
Expand Down
2 changes: 1 addition & 1 deletion GuidedTutorials/HelloWorld/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@



cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.24)

# Project name and source file language
project(HelloWorld
Expand Down
2 changes: 1 addition & 1 deletion GuidedTutorials/MultiFab/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@



cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.24)

# Project name and source file language
project(MultiFab
Expand Down

0 comments on commit 739945c

Please sign in to comment.