Skip to content
Snippets Groups Projects
Commit e55b21e2 authored by Robert Maynard's avatar Robert Maynard Committed by Brad King
Browse files

CUDA: Compute CMAKE_CUDA_RUNTIME_LIBRARY default from toolchain

Since commit 0d014513 (CUDA: Add abstraction for cuda runtime
selection, 2019-11-29, v3.17.0-rc1~83^2) we add CUDA runtime library
selection flags by default.

To maintain backwards compatibility the default CUDA runtime
library needs to be computed based on what libraries are found
on the initial compiler invocation. For example a toolchain
could establish initial flags that have all CUDA compilations
using the runtime version, and if we don't detect this we will
try to link to both the static and shared runtime.

Co-Author: Brad King <brad.king@kitware.com>
Fixes: #20708
parent 1086e930
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment