Simplified uniform GPU selection in CMake
[alexxy/gromacs.git] / src / api / cpp / tests / CMakeLists.txt
index e7c6498c0dc05e82afed96bafd27b1d9e0f17d47..e674ac44e62f765512797c05e21648084bde5382 100644 (file)
@@ -60,7 +60,7 @@ gmx_add_gtest_executable(gmxapi-test
         # pseudo-library for code for mdrun
         $<TARGET_OBJECTS:mdrun_objlib>
         )
-if(NOT GMX_USE_OPENCL)
+if(NOT GMX_GPU_OPENCL)
     # GPU resources may not be properly reinitialized between simulations in
     # the same process.
     # TODO: include this with the other test sources once the issue is resolved
@@ -89,7 +89,7 @@ gmx_add_gtest_executable(gmxapi-mpi-test MPI
         # pseudo-library for code for mdrun
         $<TARGET_OBJECTS:mdrun_objlib>
         )
-if(NOT GMX_USE_OPENCL)
+if(NOT GMX_GPU_OPENCL)
     # GPU resources may not be properly reinitialized between simulations in
     # the same process.
     # TODO: include this with the other test sources once the issue is resolved