don't auto-set nvcc host compiler with cmake >2.8.9
authorSzilard Pall <pszilard@cbr.su.se>
Wed, 5 Dec 2012 01:40:12 +0000 (02:40 +0100)
committerSzilard Pall <pszilard@cbr.su.se>
Wed, 5 Dec 2012 02:38:36 +0000 (03:38 +0100)
commit9765be25433d8275015f7a0ff0198a2b312c8ed1
treedc1c2ac91f0ac07b79c2c59edba6154792ad2769
parente6cd064af2032c3e2c9b05dc95dd4651700d5691
don't auto-set nvcc host compiler with cmake >2.8.9

Starting with CMake 2.8.10 the FindCUDA module set sets the nvcc host
compiler by default which clashes with our internal implementation of
the same feature. To support both pre-2.8.10 and later versions, this
change renames the CUDA_NVCC_HOST_COMPILER cache variable to
CUDA_HOST_COMPILER (used by CMake 2.8.10's FindCUDA) and avoids adding
the -ccbin option to the nvcc flags with CMake 2.8.10 and later.

Fixes #1051

Change-Id: I4d4048d520edb8655b88b6bae35f97df76a25910
cmake/gmxManageNvccConfig.cmake