Simplified uniform GPU selection in CMake
[alexxy/gromacs.git] / src / gromacs / listed_forces / CMakeLists.txt
index 22936e1e5b4be51197832c9e2777fffb27c71396..fa1fa07902081be0d7027030b1aa0903dd2a58a2 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2014,2015,2016,2018,2019, by the GROMACS development team, led by
+# Copyright (c) 2014,2015,2016,2018,2019,2020, by the GROMACS development team, led by
 # Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
 # and including many others, as listed in the AUTHORS file in the
 # top-level source directory and at http://www.gromacs.org.
@@ -45,7 +45,7 @@ gmx_add_libgromacs_sources(
     restcbt.cpp
     )
 
-if(GMX_USE_CUDA)
+if(GMX_GPU_CUDA)
     gmx_add_libgromacs_sources(
        gpubonded_impl.cu
        gpubondedkernels.cu