From 6a63480df8acf33adfc7b855183c71271a420dc9 Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Tue, 14 Mar 2023 21:12:44 +0100 Subject: [PATCH] Fix missing diagnostic when CUDA is not found --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f444966abb..a4d617ebc8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -162,7 +162,7 @@ if (LLAMA_BUILD_EXAMPLES) set(CMAKE_CUDA_ARCHITECTURES "35" CACHE STRING "CUDA architectures to compile for") add_subdirectory("examples/cuda/nbody") add_subdirectory("examples/cuda/pitch") - elseif() + else() message(WARNING "Could not find CUDA. Try setting CMAKE_CUDA_COMPILER. CUDA examples are disabled.") endif() endif()