let opencl be built only with cuda enabled variants
@@ -11,14 +11,14 @@ 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"
-# This is not working for now
-CMAKE_FLAGS+=" -DPLUMED_BUILD_OPENCL_LIB=ON"
# if CUDA_HOME is defined and not empty, we enable CUDA
if [[ -n ${CUDA_HOME-} ]]; then
+ # This is not working for now
CMAKE_FLAGS+=" -DCUDA_TOOLKIT_ROOT_DIR=${CUDA_HOME}"
CMAKE_FLAGS+=" -DCMAKE_LIBRARY_PATH=${CUDA_HOME}/lib64/stubs"
CMAKE_FLAGS+=" -DPLUMED_BUILD_CUDA_LIB=ON"
+ CMAKE_FLAGS+=" -DPLUMED_BUILD_OPENCL_LIB=ON"
elif [[ "$target_platform" == osx* ]]; then
CMAKE_FLAGS+=" -DCMAKE_OSX_SYSROOT=${CONDA_BUILD_SYSROOT}"
CMAKE_FLAGS+=" -DCMAKE_OSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET}"
