diff options
author | Brad King <brad.king@kitware.com> | 2016-12-09 20:56:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-12-13 16:01:40 (GMT) |
commit | e3f404fe29d85c068641309c1bfbfab1e34cc6e3 (patch) | |
tree | 9e01bdbc8b381407070a42561eb0817c50a5c614 /CONTRIBUTING.rst | |
parent | 3d3d3f94703e23d3d2cbff67537057474e3e0ff1 (diff) | |
download | CMake-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