diff options
author | Henry Schreiner <henryschreineriii@gmail.com> | 2018-04-12 20:39:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-04-13 17:04:33 (GMT) |
commit | 595aa12811dd34a98e80045aead4c351921a87fc (patch) | |
tree | 6605d05f94f777ac2d344e3bfddf0edb2ab78f4b /Modules/CMakeCUDACompiler.cmake.in | |
parent | 4984d8433edb05eac446542b561a31edf7a25783 (diff) | |
download | CMake-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.in | 1 |
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) |