be explicit about linked opencl
@@ -14,7 +14,10 @@ CMAKE_FLAGS+=" -DBUILD_TESTING=ON"
CMAKE_FLAGS+=" -DOPENMM_DIR=${PREFIX}"
CMAKE_FLAGS+=" -DPLUMED_INCLUDE_DIR=${PREFIX}/include/plumed"
CMAKE_FLAGS+=" -DPLUMED_LIBRARY_DIR=${PREFIX}/lib"
+# OpenCL
CMAKE_FLAGS+=" -DPLUMED_BUILD_OPENCL_LIB=ON"
+CMAKE_FLAGS+=" -DOPENCL_INCLUDE_DIR=${PREFIX}/include"
+CMAKE_FLAGS+=" -DOPENCL_LIBRARY=${PREFIX}/lib/libOpenCL${SHLIB_EXT}"
# if CUDA_HOME is defined and not empty, we enable CUDA
if [[ -n ${CUDA_HOME-} ]]; then
