Optix SDK CMake issues

I am trying to compile a sample optix solution using CMake, but I am running into issues. I am pretty new to this so bear with me if I don’t provide enough information. I am using CMake to link all the optix files for the project.
Optix 5.1
Cuda 10.0
VS 2017

Cmake successfully generates the build files, but when I try to build the solution in visual studio I am running into errors:
Error MSB6006 “cmd.exe” exited with code 1. optixRaycasting C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 209

As far as I can tell, the custom build has a incorrect path somewhere that I cannot find. I have done some investigating, and it looks like this is coming from some compatibility issues between optix cuda and VS. I tried installing cuda 9.0 to fix these issues, but I believe I now need to use VS 2015 for this to work. CMake does not recognize VS 2015, as I only have the VS 2015 build tools. So it cannot build a solution. I’m pretty stuck at this point, so any advice would be greatly appreciated.

Just in case anyone stumbles on this thread, I fixed the issue. It was indeed compatability issues with optix and cuda. The software combination that works is Optix 5.1, Cuda 9.0, and VS 2015.