Optix 6.5

That is most likely due to the outdated FindCUDA.cmake inside the repository which is not able to determine the correct CUDA_HOST_COMPILER location after Microsoft changed their internal folder structure from MSVS 2015 to 2017.

Please see this post for how to set the CUDA_HOST_COMPILER manually inside the CMake GUI or how to use the FindCUDA.cmake provided by CMake.
https://forums.developer.nvidia.com/t/hdr-denoising-variable-has-no-effect/71813/8