Simplified uniform GPU selection in CMake
[alexxy/gromacs.git] / src / gromacs / nbnxm / cuda / CMakeLists.txt
index ab3e6e8882482ca2a58c085b344a6851121295cb..15c047605a625e164b3d502c541f831e8b82f2c9 100644 (file)
@@ -33,7 +33,7 @@
 # To help us fund GROMACS development, we humbly ask that you cite
 # the research papers on the package. Check out http://www.gromacs.org.
 
-if(GMX_USE_CUDA)
+if(GMX_GPU_CUDA)
     if(NOT GMX_CUDA_NB_SINGLE_COMPILATION_UNIT)
         set(NBNXM_CUDA_KERNEL_SOURCES
                 nbnxm_cuda_kernel_F_noprune.cu