summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCUDACompiler.cmake.in
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2016-08-26 20:59:36 (GMT)
committerRobert Maynard <robert.maynard@kitware.com>2016-11-14 16:36:42 (GMT)
commitf8aac21947f43a0e886a3cc3655514abb95bb260 (patch)
treea257ad0211362ab635e3b09922ec143eba1827a3 /Modules/CMakeCUDACompiler.cmake.in
parent4a4be0301bd9c6062738e87892cbe5bd8d900a49 (diff)
downloadCMake-f8aac21947f43a0e886a3cc3655514abb95bb260.zip
CMake-f8aac21947f43a0e886a3cc3655514abb95bb260.tar.gz
CMake-f8aac21947f43a0e886a3cc3655514abb95bb260.tar.bz2
CUDA: Add basic CUDA language support for *NIX systems.
Diffstat (limited to 'Modules/CMakeCUDACompiler.cmake.in')
-rw-r--r--Modules/CMakeCUDACompiler.cmake.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/CMakeCUDACompiler.cmake.in b/Modules/CMakeCUDACompiler.cmake.in
new file mode 100644
index 0000000..1e34825
--- /dev/null
+++ b/Modules/CMakeCUDACompiler.cmake.in
@@ -0,0 +1,7 @@
+set(CMAKE_CUDA_COMPILER "@CMAKE_CUDA_COMPILER@")
+set(CMAKE_CUDA_COMPILER_ID "@CMAKE_CUDA_COMPILER_ID@")
+
+set(CMAKE_CUDA_COMPILER_ENV_VAR "CUDACXX")
+
+set(CMAKE_CUDA_COMPILER_ID_RUN 1)
+set(CMAKE_CUDA_SOURCE_FILE_EXTENSIONS cu)