CMAKE crash while using CMAKE_VS_PLATFORM_TOOLSET_CUDA_CUSTOM_DIR
CMake 3.17.3 Windows 10
- According to the cmake doc, reorganize the CUDA sdk files....
- create a new directory CUDAVisualStudioIntegration and copy the cuda 'extras' directory it
- create a nvcc directory and copy all the rest into it
NOTE: I don't get why we have to move around the internal CUDA sdk files to please cmake. It's a serious constrain since I need a special CUDA tree just for CMake....
- CMakeLists
set(CMAKE_VS_PLATFORM_TOOLSET_CUDA 10.2)
set(CMAKE_VS_PLATFORM_TOOLSET_CUDA_CUSTOM_DIR "${MY_CUDA_LOCAL_ROOT}/")
enable_language(CUDA)
- In cmake gui or command line
- configure : sometimes crash
- generate: always crash