VS: CUDA in custom path and Intel compiler
I'm trying to compile some targets on Windows with Intel compilers and others with CUDA with cl as host compiler. This worked when using FindCuda.cmake by setting CMAKE_GENERATOR_TOOLSET="Intel C++ Compiler 18.0"
. My understanding is that now I can achieve it by setting
CMAKE_GENERATOR_TOOLSET="Intel C++ Compiler 18.0,cuda=<path-to-cuda>"
However this does not work
-- Looking for a CUDA compiler
-- Looking for a CUDA compiler - NOTFOUND
Setting CMAKE_GENERATOR_TOOLSET=cuda=<path-to-cuda>"
works (but uses the visual studio compiler everywhere).
Edited by Brad King