Skip to content

CUDA: Link to standard system libraries when linking as CUDA

Brad King requested to merge brad.king/cmake:cuda-with-c into master

On Windows with MSVC-like host compilers we must honor the standard libraries chosen by the Platform/Windows-MSVC module. Otherwise C code linked into the CUDA binary that expects to have these libraries available may not link.

Fix this and add a test case that verifies the Windows standard libraries are linked.

Merge request reports