Stop using custom FindOpenCL.cmake, per TODO
commit0748b1a99786294ca67f89fd140f170d91c400e6
authorAleksei Iupinov <a.yupinov@gmail.com>
Tue, 27 Feb 2018 16:55:31 +0000 (27 17:55 +0100)
committerSzilárd Páll <pall.szilard@gmail.com>
Mon, 5 Mar 2018 16:28:23 +0000 (5 17:28 +0100)
tree659cf610745881470092a4ff638c4af35776a777
parent0d7383b25c34fa4b64aa0cd7a366c561d3466553
Stop using custom FindOpenCL.cmake, per TODO

It was originally taken from cmake 3.1.0 and modified to produce
all-uppercase variable names (with OPENCL_ instead of OpenCL_),
so the surrounding cmake code is now changed to expect exact-case names.

Another (undocumented) modification was that it took into account
CUDA_HOME env.var. when searching for OpenCL, while standard cmake
only looks at seemingly less useful CUDA_PATH. This useful trick is
preserved by temporarily appending $ENV{CUDA_HOME} to CMAKE_PREFIX_PATH.

Change-Id: I5ca60f88e657b064fb6f98b268c2c48e10f00986
cmake/FindOpenCL.cmake [deleted file]
cmake/gmxManageOpenCL.cmake
src/buildinfo.h.cmakein
src/gromacs/CMakeLists.txt
src/gromacs/gpu_utils/tests/CMakeLists.txt