summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCUDAInformation.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-12-13 18:01:49 (GMT)
committerBrad King <brad.king@kitware.com>2017-01-12 15:39:02 (GMT)
commitd470cb70077acf2216afe097b5abe379f1828239 (patch)
tree7facbd0f6efeb006ba29afd5990c71f855883297 /Modules/CMakeCUDAInformation.cmake
parenta2e80cb0853b3b8306069b833ec8c2128a77b072 (diff)
downloadCMake-d470cb70077acf2216afe097b5abe379f1828239.zip
CMake-d470cb70077acf2216afe097b5abe379f1828239.tar.gz
CMake-d470cb70077acf2216afe097b5abe379f1828239.tar.bz2
CUDA: Use `.obj` object file extension on Windows
Diffstat (limited to 'Modules/CMakeCUDAInformation.cmake')
-rw-r--r--Modules/CMakeCUDAInformation.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/CMakeCUDAInformation.cmake b/Modules/CMakeCUDAInformation.cmake
index cb0eef5..abc4b66 100644
--- a/Modules/CMakeCUDAInformation.cmake
+++ b/Modules/CMakeCUDAInformation.cmake
@@ -1,7 +1,11 @@
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
-set(CMAKE_CUDA_OUTPUT_EXTENSION .o)
+if(UNIX)
+ set(CMAKE_CUDA_OUTPUT_EXTENSION .o)
+else()
+ set(CMAKE_CUDA_OUTPUT_EXTENSION .obj)
+endif()
set(CMAKE_INCLUDE_FLAG_CUDA "-I")
# Load compiler-specific information.