Simplified uniform GPU selection in CMake
[alexxy/gromacs.git] / src / gromacs / nbnxm / opencl / CMakeLists.txt
index 0c3690645790d03e61cb88beff6ef8b09d8a6524..69d86e96ba2bcbaa229bef10f3b5acd7e369af94 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_OPENCL)
+if(GMX_GPU_OPENCL)
     file(GLOB OPENCL_NB_SOURCES *.cpp)
     set(NBNXM_SOURCES ${NBNXM_SOURCES} ${OPENCL_NB_SOURCES} PARENT_SCOPE)
 endif()