From b719306266d04e814a91e152334ceb69561ac473 Mon Sep 17 00:00:00 2001 From: jpekkila Date: Sat, 30 May 2020 19:36:32 +0300 Subject: [PATCH] Upped the required CMake version. This may be an issue on older machines. Instead of making the user to compile CMake themselves in this case, we could maybe add CMake as a submodule. In any case supporting older CMake versions is not really an option because CUDA support with those is so bad and requires adding dirty hacks to the clean cmakefiles we have now. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ac33bc5..59a371a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,7 @@ ## CMake settings -cmake_minimum_required(VERSION 3.9) # Required for first-class CUDA support +# V3.9 required for first-class CUDA support +# V3.17 required for the FindCUDAToolkit package +cmake_minimum_required(VERSION 3.17) find_program(CMAKE_C_COMPILER NAMES $ENV{CC} gcc PATHS ENV PATH NO_DEFAULT_PATH) find_program(CMAKE_CXX_COMPILER NAMES $ENV{CXX} g++ PATHS ENV PATH NO_DEFAULT_PATH)