Merge branch release-5-1
[alexxy/gromacs.git] / cmake / gmxManageGPU.cmake
index 9b4f328ce71be9b7e6fd847d637ca8560f6ea570..4e43c5e2d73f282d28905cdd4f449ed3399beea4 100644 (file)
@@ -175,7 +175,11 @@ endif()
 # We need to mark these advanced outside the conditional, otherwise, if the
 # user turns GMX_GPU=OFF after a failed cmake pass, these variables will be
 # left behind in the cache.
-mark_as_advanced(CUDA_BUILD_CUBIN CUDA_BUILD_EMULATION CUDA_SDK_ROOT_DIR CUDA_VERBOSE_BUILD)
+mark_as_advanced(CUDA_BUILD_CUBIN CUDA_BUILD_EMULATION CUDA_SDK_ROOT_DIR CUDA_VERBOSE_BUILD # cmake 2.8.9 still spews these, check again when requirements change
+                 CUDA_SEPARABLE_COMPILATION      # not present at least with cmake 3.2, remove when required
+                 CUDA_USE_STATIC_CUDA_RUNTIME    # since cmake 3.3
+                 CUDA_dl_LIBRARY CUDA_rt_LIBRARY # - || -
+                 )
 if(NOT GMX_GPU)
     mark_as_advanced(CUDA_TOOLKIT_ROOT_DIR)
 endif()