enable_language(CUDA) should now work as expected
MODIFY
src/vcpkg/base/system.cpp
src/vcpkg/base/system.cpp
@@ -233,8 +233,13 @@ namespace vcpkg
// Enables proxy information to be passed to Curl, the underlying download library in cmake.exe
L"http_proxy",
L"https_proxy",
- // Enables find_package(CUDA) in CMake
+ // Enables find_package(CUDA) and enable_language(CUDA) in CMake
L"CUDA_PATH",
+ L"CUDA_PATH_V9_0",
+ L"CUDA_PATH_V9_1",
+ L"CUDA_PATH_V10_0",
+ L"CUDA_PATH_V10_1",
+ L"CUDA_TOOLKIT_ROOT_DIR",
// Environmental variable generated automatically by CUDA after installation
L"NVCUDASAMPLES_ROOT",
// Enables find_package(Vulkan) in CMake. Environmental variable generated by Vulkan SDK installer

enable_language(CUDA) should now work as expected (#6069)