How to specify msvc compiler using -ccbin?

Hi,
I am trying to pass the msvc path to nvcc by using the -ccbin option but looks like nvcc looks at the PATH variable and gives me the error (using CUDA 10 with MSVC 2017):

“Compiler ‘cl.exe’ in PATH different than the one specified with -ccbin”

Shoudn’t ccbin override the PATH variable?