From a9dfe9051da0e1169f7c40505b0684ca3f818b1a Mon Sep 17 00:00:00 2001 From: Thomas Schoeps Date: Fri, 3 Jan 2020 13:22:17 +0100 Subject: [PATCH] Show an error message if CMake does not find CUDA --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 69b967a..c63aefd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,6 +40,8 @@ if (CMAKE_CUDA_COMPILER) set(CMAKE_CUDA_STANDARD 11) set(CMAKE_CUDA_STANDARD_REQUIRED ON) endif() +else() + message(FATAL_ERROR "CMake did not find CUDA, which is required to build this program.") endif() # Cross-platform threading. See: