diff options
author | Brad King <brad.king@kitware.com> | 2016-12-13 18:01:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-01-12 15:39:02 (GMT) |
commit | d470cb70077acf2216afe097b5abe379f1828239 (patch) | |
tree | 7facbd0f6efeb006ba29afd5990c71f855883297 /Source/cmMakefileLibraryTargetGenerator.cxx | |
parent | a2e80cb0853b3b8306069b833ec8c2128a77b072 (diff) | |
download | CMake-d470cb70077acf2216afe097b5abe379f1828239.zip CMake-d470cb70077acf2216afe097b5abe379f1828239.tar.gz CMake-d470cb70077acf2216afe097b5abe379f1828239.tar.bz2 |
CUDA: Use `.obj` object file extension on Windows
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileLibraryTargetGenerator.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx index 2b0e1b1..d4ad16d 100644 --- a/Source/cmMakefileLibraryTargetGenerator.cxx +++ b/Source/cmMakefileLibraryTargetGenerator.cxx @@ -281,6 +281,8 @@ void cmMakefileLibraryTargetGenerator::WriteDeviceLibraryRules( // Get the language to use for linking this library. std::string linkLanguage = "CUDA"; + std::string const objExt = + this->Makefile->GetSafeDefinition("CMAKE_CUDA_OUTPUT_EXTENSION"); // Create set of linking flags. std::string linkFlags; @@ -288,7 +290,7 @@ void cmMakefileLibraryTargetGenerator::WriteDeviceLibraryRules( // Get the name of the device object to generate. std::string const targetOutputReal = - this->GeneratorTarget->ObjectDirectory + "cmake_device_link.o"; + this->GeneratorTarget->ObjectDirectory + "cmake_device_link" + objExt; this->DeviceLinkObject = targetOutputReal; this->NumberOfProgressActions++; |