summaryrefslogtreecommitdiffstats
path: root/Modules/FindThreads.cmake
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2018-10-22 14:54:44 (GMT)
committerBrad King <brad.king@kitware.com>2018-10-24 13:54:25 (GMT)
commite768d96c74579c79e184027775e51b08cd77fe45 (patch)
tree08acb89465f4926d82c36bebbb6ff38419bc8dcd /Modules/FindThreads.cmake
parent3e5548784da085ee3a5ce3f7213c0cf281b68f31 (diff)
downloadCMake-e768d96c74579c79e184027775e51b08cd77fe45.zip
CMake-e768d96c74579c79e184027775e51b08cd77fe45.tar.gz
CMake-e768d96c74579c79e184027775e51b08cd77fe45.tar.bz2
CUDA: Filter out host link flags during device linking
Since commit v3.12.0-rc1~278^2 (CUDA: Pass more link libraries to device linking, 2018-03-27) we consider every link item during device linking. However, items that start in `-` may be host-specific link flags that nvcc will not understand during device linking. Filter such items using a white list. In particular, this allows `-pthread` to be used for host linking while not polluting the device link line. Issue: #18008
Diffstat (limited to 'Modules/FindThreads.cmake')
0 files changed, 0 insertions, 0 deletions