From: Szilard Pall Date: Wed, 5 Dec 2012 02:19:41 +0000 (+0100) Subject: don't warn during configuring if no GPUs were found X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=9294a8d238bd004234f9a84788132d70319c2f09;p=alexxy%2Fgromacs.git don't warn during configuring if no GPUs were found This change avoids issuing the post-configure GPU acceleration warning if no GPUs were found in the build machine. Change-Id: I63962c43ec9a8b9ee4f5ec2d1a19d4d819419ff7 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index bd215f9590..3cdc44e8c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1163,9 +1163,9 @@ add_subdirectory(include) add_subdirectory(src) add_subdirectory(scripts) -# issue GPU acceleration/CUDA-related warning or error if GMX_GPU was set -# Auto and NVIDIA GPUs were detected. -if (CUDA_NOTFOUND_AUTO AND NOT GMX_GPU_DETECTION_DONE) +# Issue a warning if NVIDIA GPUs were detected, but CUDA was not found. +# Don't bother the user after the first configure pass. +if ((CUDA_NOTFOUND_AUTO AND GMX_DETECT_GPU_AVAILABLE) AND NOT GMX_GPU_DETECTION_DONE) message(WARNING "${CUDA_NOTFOUND_MESSAGE}") unset(CUDA_NOTFOUND_AUTO) unset(CUDA_NOTFOUND_MESSAGE)