Skip to content

Add -Xlinker to linker flags being passed to nvcc

Avishay Orpaz requested to merge avishorp/cmake:master into master

When using CUDA language, the CMAKE_CUDA_LINK_FLAGS parameter is passed both to the host linker and to nvcc. This cannot work since nvcc requires an "-Xlinker" flag before each flag that should be forwarded to the linker. This patch adds the -Xlinker before each flag specified in CMAKE_CUDA_LINK_FLAGS.

Merge request reports