summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/NVIDIA-DetermineCompiler.cmake
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/Compiler/NVIDIA-DetermineCompiler.cmake
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/Compiler/NVIDIA-DetermineCompiler.cmake')
-rw-r--r--Modules/Compiler/NVIDIA-DetermineCompiler.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/Compiler/NVIDIA-DetermineCompiler.cmake b/Modules/Compiler/NVIDIA-DetermineCompiler.cmake
new file mode 100644
index 0000000..32ccf8a
--- /dev/null
+++ b/Modules/Compiler/NVIDIA-DetermineCompiler.cmake
@@ -0,0 +1,7 @@
+
+set(_compiler_id_pp_test "defined(__NVCC__)")
+
+set(_compiler_id_version_compute "
+# define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_DEC@(__CUDACC_VER_MAJOR__)
+# define @PREFIX@COMPILER_VERSION_MINOR @MACRO_DEC@(__CUDACC_VER_MINOR__)
+# define @PREFIX@COMPILER_VERSION_PATCH @MACRO_DEC@(__CUDACC_VER_BUILD__)")