One way to solve CMake compilation error: [CUDA] No CUDA toolset found.

Problem: cMake compile error: No CUDA toolset found.
Solution: find the solution in stackoverflow.
Copy the four files under this path C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\extras\visual_studio_integration\MSBuildExtensions
insert image description here
to the following path.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\BuildCustomizations

Recompile and pass.
Note: Change to your own path.

Guess you like

Origin blog.csdn.net/qq_25439417/article/details/131820289