summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-04-16 13:14:57 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-04-16 13:15:01 (GMT)
commitccd17a557cbf8ada18207a72eea78d2adcc9d752 (patch)
treedc55cdb5c96b4a0028ea35feb34b8966d660f61b
parent5099af044fc737fef6215ccacdce3bb4c9f3d957 (diff)
parent595aa12811dd34a98e80045aead4c351921a87fc (diff)
downloadCMake-ccd17a557cbf8ada18207a72eea78d2adcc9d752.zip
CMake-ccd17a557cbf8ada18207a72eea78d2adcc9d752.tar.gz
CMake-ccd17a557cbf8ada18207a72eea78d2adcc9d752.tar.bz2
Merge topic 'cuda-compiler-loaded'
595aa12811 CUDA: Set CMAKE_CUDA_COMPILER_LOADED variable when language is enabled Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1955
-rw-r--r--Modules/CMakeCUDACompiler.cmake.in1
1 files changed, 1 insertions, 0 deletions
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)