From 595aa12811dd34a98e80045aead4c351921a87fc Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Thu, 12 Apr 2018 16:39:27 -0400 Subject: CUDA: Set CMAKE_CUDA_COMPILER_LOADED variable when language is enabled We already do this for C, CXX, Fortran, etc. --- Modules/CMakeCUDACompiler.cmake.in | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/CMakeCUDACompiler.cmake.in b/Modules/CMakeCUDACompiler.cmake.in index f524e5f..9761d8c 100644 --- a/Modules/CMakeCUDACompiler.cmake.in +++ b/Modules/CMakeCUDACompiler.cmake.in @@ -11,6 +11,7 @@ set(CMAKE_CUDA_SIMULATE_VERSION "@CMAKE_CUDA_SIMULATE_VERSION@") set(CMAKE_CUDA_COMPILER_ENV_VAR "CUDACXX") set(CMAKE_CUDA_HOST_COMPILER_ENV_VAR "CUDAHOSTCXX") +set(CMAKE_CUDA_COMPILER_LOADED 1) set(CMAKE_CUDA_COMPILER_ID_RUN 1) set(CMAKE_CUDA_SOURCE_FILE_EXTENSIONS cu) set(CMAKE_CUDA_LINKER_PREFERENCE 15) -- cgit v0.12