summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeTestCUDACompiler.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/CMakeTestCUDACompiler.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/CMakeTestCUDACompiler.cmake')
-rw-r--r--Modules/CMakeTestCUDACompiler.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/Modules/CMakeTestCUDACompiler.cmake b/Modules/CMakeTestCUDACompiler.cmake
index e45d2ab..670b31d 100644
--- a/Modules/CMakeTestCUDACompiler.cmake
+++ b/Modules/CMakeTestCUDACompiler.cmake
@@ -53,6 +53,19 @@ else()
"Determining if the CUDA compiler works passed with "
"the following output:\n${__CMAKE_CUDA_COMPILER_OUTPUT}\n\n")
endif()
+
+ # Try to identify the ABI and configure it into CMakeCUDACompiler.cmake
+ include(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerABI.cmake)
+ CMAKE_DETERMINE_COMPILER_ABI(CUDA ${CMAKE_ROOT}/Modules/CMakeCUDACompilerABI.cu)
+
+ # Re-configure to save learned information.
+ configure_file(
+ ${CMAKE_ROOT}/Modules/CMakeCUDACompiler.cmake.in
+ ${CMAKE_PLATFORM_INFO_DIR}/CMakeCUDACompiler.cmake
+ @ONLY
+ )
+ include(${CMAKE_PLATFORM_INFO_DIR}/CMakeCUDACompiler.cmake)
endif()
+
unset(__CMAKE_CUDA_COMPILER_OUTPUT)