summaryrefslogtreecommitdiffstats
path: root/CONTRIBUTING.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-12-09 20:56:41 (GMT)
committerBrad King <brad.king@kitware.com>2016-12-13 16:01:40 (GMT)
commite3f404fe29d85c068641309c1bfbfab1e34cc6e3 (patch)
tree9e01bdbc8b381407070a42561eb0817c50a5c614 /CONTRIBUTING.rst
parent3d3d3f94703e23d3d2cbff67537057474e3e0ff1 (diff)
downloadCMake-e3f404fe29d85c068641309c1bfbfab1e34cc6e3.zip
CMake-e3f404fe29d85c068641309c1bfbfab1e34cc6e3.tar.gz
CMake-e3f404fe29d85c068641309c1bfbfab1e34cc6e3.tar.bz2
CUDA: Implement nvcc implicit link line extraction more robustly
Do not assume that the implicit link line is the last line of the output from `nvcc -v`. Instead first find the `LIBRARIES=` line, and then look for that content on a later line. It appears twice. First on a call to `nvlink`, which we ignore. Later it appears on the implicit link line. Extract the latter line. On failure, abort with a `FATAL_ERROR` so that the user does not try to build without proper link information. Once we have the line, parse it with `separate_arguments` using the `UNIX_COMMAND` option just like `CMakeParseImplicitLinkInfo` already does. This robustly parses the command line and removes quoting. Then extract the first argument as the host link launcher.
Diffstat (limited to 'CONTRIBUTING.rst')
0 files changed, 0 insertions, 0 deletions