summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCUDACompiler.cmake.in
diff options
context:
space:
mode:
authorHenry Schreiner <henryschreineriii@gmail.com>2018-04-12 20:39:27 (GMT)
committerBrad King <brad.king@kitware.com>2018-04-13 17:04:33 (GMT)
commit595aa12811dd34a98e80045aead4c351921a87fc (patch)
tree6605d05f94f777ac2d344e3bfddf0edb2ab78f4b /Modules/CMakeCUDACompiler.cmake.in
parent4984d8433edb05eac446542b561a31edf7a25783 (diff)
downloadCMake-595aa12811dd34a98e80045aead4c351921a87fc.zip
CMake-595aa12811dd34a98e80045aead4c351921a87fc.tar.gz
CMake-595aa12811dd34a98e80045aead4c351921a87fc.tar.bz2
CUDA: Set CMAKE_CUDA_COMPILER_LOADED variable when language is enabled
We already do this for C, CXX, Fortran, etc.
Diffstat (limited to 'Modules/CMakeCUDACompiler.cmake.in')
-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)