summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaNormalTargetGenerator.cxx
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 /Source/cmNinjaNormalTargetGenerator.cxx
parenta2e80cb0853b3b8306069b833ec8c2128a77b072 (diff)
downloadCMake-d470cb70077acf2216afe097b5abe379f1828239.zip
CMake-d470cb70077acf2216afe097b5abe379f1828239.tar.gz
CMake-d470cb70077acf2216afe097b5abe379f1828239.tar.bz2
CUDA: Use `.obj` object file extension on Windows
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index 0db5687..10ee70d 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -602,10 +602,12 @@ void cmNinjaNormalTargetGenerator::WriteDeviceLinkStatement()
// First and very important step is to make sure while inside this
// step our link language is set to CUDA
std::string cudaLinkLanguage = "CUDA";
+ std::string const objExt =
+ this->Makefile->GetSafeDefinition("CMAKE_CUDA_OUTPUT_EXTENSION");
std::string const cfgName = this->GetConfigName();
- std::string const targetOutputReal =
- ConvertToNinjaPath(genTarget.ObjectDirectory + "cmake_device_link.o");
+ std::string const targetOutputReal = ConvertToNinjaPath(
+ genTarget.ObjectDirectory + "cmake_device_link" + objExt);
std::string const targetOutputImplib =
ConvertToNinjaPath(genTarget.GetFullPath(cfgName,