From: Daniel Arndt Date: Tue, 1 Nov 2022 12:11:43 +0000 (+0000) Subject: Set var to FALSe if package was not found X-Git-Tag: v9.5.0-rc1~854^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a3e92a3be903b5cf102c299fbce7eeba85a494d;p=dealii.git Set var to FALSe if package was not found --- diff --git a/cmake/configure/configure_40_cuda.cmake b/cmake/configure/configure_40_cuda.cmake index dd314711d0..f30b68377d 100644 --- a/cmake/configure/configure_40_cuda.cmake +++ b/cmake/configure/configure_40_cuda.cmake @@ -28,7 +28,7 @@ MACRO(FEATURE_CUDA_FIND_EXTERNAL var) ${CUDA_ADDITIONAL_ERROR_STRING} "deal.II can only compiled with Cuda support if Kokkos was built with Cuda support!" ) - SET(${var} TRUE) + SET(${var} FALSE) ELSE() # We need to set CUDA_USE_STATIC_CUDA_RUNTIME before FIND_PACKAGE(CUDA) and to # force the value otherwise it is overwritten by FIND_PACKAGE(CUDA)