Visual studio update 15.9.17 breaks CUDA support

After the 15.9.17 update of Visual studio 2017 Professionnal, CMAKE was no longer able to find CUDA on my computer.

I figured out that the 15 9.17 update had created a new folder named
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise where normally there only was a C:\Program Files (x86)\Microsoft Visual Studio\2017\Professionnal

After further investigation, I figured out that all CUDA related files were missing from
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\BuildCustomizations compared to its Professionnal counterpart. After copying these files, CMAKE was able to find CUDA again,

I figured I’d share this information in case someone else experiences the same problem since I haven’t found anythying relevant about this issue on the web.

The CUDA content of the BuildCustomizations directory is populated by the NVIDIA CUDA Toolkit Installer. That may need to run again since your update switched editions of VS from Professional to Enterprise.