summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCompilerIdDetection.cmake
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2016-08-29 17:28:37 (GMT)
committerRobert Maynard <robert.maynard@kitware.com>2016-11-14 16:36:43 (GMT)
commit4f5155f6aba7cb7cd8c0e5b75e43b38a70568eb1 (patch)
treef9985cf9906992c74390b8187fd9d4c3d371684e /Modules/CMakeCompilerIdDetection.cmake
parentaaeee1ca72d4f8b09ebf98c3e3bd73d50c09c0d8 (diff)
downloadCMake-4f5155f6aba7cb7cd8c0e5b75e43b38a70568eb1.zip
CMake-4f5155f6aba7cb7cd8c0e5b75e43b38a70568eb1.tar.gz
CMake-4f5155f6aba7cb7cd8c0e5b75e43b38a70568eb1.tar.bz2
CUDA: We now properly perform CUDA compiler identification.
Diffstat (limited to 'Modules/CMakeCompilerIdDetection.cmake')
-rw-r--r--Modules/CMakeCompilerIdDetection.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/CMakeCompilerIdDetection.cmake b/Modules/CMakeCompilerIdDetection.cmake
index 4732250..2881cb1 100644
--- a/Modules/CMakeCompilerIdDetection.cmake
+++ b/Modules/CMakeCompilerIdDetection.cmake
@@ -90,6 +90,11 @@ function(compiler_id_detection outvar lang)
list(APPEND ordered_compilers
MIPSpro)
+ #Currently the only CUDA compilers are NVIDIA
+ if(lang STREQUAL CUDA)
+ set(ordered_compilers NVIDIA)
+ endif()
+
if(CID_ID_DEFINE)
foreach(Id ${ordered_compilers})
set(CMAKE_${lang}_COMPILER_ID_CONTENT "${CMAKE_${lang}_COMPILER_ID_CONTENT}# define ${CID_PREFIX}COMPILER_IS_${Id} 0\n")