Skip to content

Commit

Permalink
CMake: require version 3.14 only is CUDA is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mic84 committed Feb 27, 2019
1 parent 457ed45 commit 5e41e27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 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.13)

project (AMReX)

Expand Down Expand Up @@ -37,6 +37,9 @@ include( AMReX_Machines )
# to be the C++ compiler.
#
if (ENABLE_CUDA)
if(${CMAKE_VERSION} VERSION_LESS "3.14.0")
message(FATAL_ERROR "CUDA support requires CMake >= 3.14.0")
endif()
include(AMReX_SetupCUDA)
setup_cuda_host_compiler()
enable_language(CUDA)
Expand Down

0 comments on commit 5e41e27

Please sign in to comment.