summaryrefslogtreecommitdiffstats
path: root/Help/command/site_name.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-10-04 13:04:07 (GMT)
committerBrad King <brad.king@kitware.com>2017-10-04 14:25:47 (GMT)
commit7914fb82234a9b94ca32879763623bb7c8a4e008 (patch)
tree177adb89e191bba71572143a8b9c634b889a1bf2 /Help/command/site_name.rst
parent0e1ef0ca397db5f0292a218dadc997a7690205cd (diff)
downloadCMake-7914fb82234a9b94ca32879763623bb7c8a4e008.zip
CMake-7914fb82234a9b94ca32879763623bb7c8a4e008.tar.gz
CMake-7914fb82234a9b94ca32879763623bb7c8a4e008.tar.bz2
CUDA: Fix default selection of host compiler used to drive linking
When no explicit `CMAKE_CUDA_HOST_COMPILER` is specified by the user then we do not pass `-ccbin` to `nvcc`. In this case, nvcc's link line we extract during the compiler identification step may not have the absolute path to the host compiler it uses to drive linking. If it is not absolute, use the `PATH=` from nvcc's output to search for it since that is the one `nvcc` would use. This fixes our internal `CMAKE_CUDA_HOST_LINK_LAUNCHER` value used to construct link lines when using `CUDA` as the linker language. It needs to match the host compiler `nvcc` uses internally during compilation. Fixes: #17323
Diffstat (limited to 'Help/command/site_name.rst')
0 files changed, 0 insertions, 0 deletions