diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2017-02-08 21:51:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-02-10 21:08:06 (GMT) |
commit | 44f3acb202c316bc6a863a1823aaafae486c899a (patch) | |
tree | 58969a6efd466eee165d0e288cb7f15778242783 /Modules/CMakeCUDACompiler.cmake.in | |
parent | 84df4a49500e51ac6e2a19a77e385e66234386f7 (diff) | |
download | CMake-44f3acb202c316bc6a863a1823aaafae486c899a.zip CMake-44f3acb202c316bc6a863a1823aaafae486c899a.tar.gz CMake-44f3acb202c316bc6a863a1823aaafae486c899a.tar.bz2 |
CUDA: Detect the toolkit include directories
The `nvcc -v` output provides what include directories need to be added
to use the CUDA toolkit from other languages ( C/C++ ).
Diffstat (limited to 'Modules/CMakeCUDACompiler.cmake.in')
-rw-r--r-- | Modules/CMakeCUDACompiler.cmake.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CMakeCUDACompiler.cmake.in b/Modules/CMakeCUDACompiler.cmake.in index 158d12b..f524e5f 100644 --- a/Modules/CMakeCUDACompiler.cmake.in +++ b/Modules/CMakeCUDACompiler.cmake.in @@ -16,6 +16,8 @@ set(CMAKE_CUDA_SOURCE_FILE_EXTENSIONS cu) set(CMAKE_CUDA_LINKER_PREFERENCE 15) set(CMAKE_CUDA_LINKER_PREFERENCE_PROPAGATES 1) +set(CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES "@CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES@") + set(CMAKE_CUDA_HOST_IMPLICIT_LINK_LIBRARIES "@CMAKE_CUDA_HOST_IMPLICIT_LINK_LIBRARIES@") set(CMAKE_CUDA_HOST_IMPLICIT_LINK_DIRECTORIES "@CMAKE_CUDA_HOST_IMPLICIT_LINK_DIRECTORIES@") set(CMAKE_CUDA_HOST_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "@CMAKE_CUDA_HOST_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES@") |