I think I’ve found a way to work around the problem:
FIND_LIBRARY(NVRTC_LIB nvrtc PATHS "${CUDAToolkit_LIBRARY_DIR}")
and then I link to ${NVRTC_LIB}
instead of CUDA::nvrtc
. I still need to test a bit more, but so far it seems to be working.