diff options
author | Brad King <brad.king@kitware.com> | 2020-02-25 13:54:35 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-02-25 13:54:45 (GMT) |
commit | 64ed4f6f9987d8ab9fc07fcb0d7d1f68d4f85364 (patch) | |
tree | 6eab134287b4dcd6300bf944bc9a167fd40af7dd /Source | |
parent | 2fb84a93527903d907b8e32cf0b74b5686d4374d (diff) | |
parent | 7da2c8c543b7f8ffc1afe1b1cc4d11d60e9db3a4 (diff) | |
download | CMake-64ed4f6f9987d8ab9fc07fcb0d7d1f68d4f85364.zip CMake-64ed4f6f9987d8ab9fc07fcb0d7d1f68d4f85364.tar.gz CMake-64ed4f6f9987d8ab9fc07fcb0d7d1f68d4f85364.tar.bz2 |
Merge topic 'cuda-non-device-link'
7da2c8c543 Merge branch 'backport-cuda-non-device-link'
738f3f23aa Ninja: Do not use nvcc response files with non-nvcc tools
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Robert Maynard <robert.maynard@kitware.com>
Merge-request: !4376
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmNinjaNormalTargetGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx index ff79a17..0a6da91 100644 --- a/Source/cmNinjaNormalTargetGenerator.cxx +++ b/Source/cmNinjaNormalTargetGenerator.cxx @@ -197,7 +197,7 @@ void cmNinjaNormalTargetGenerator::WriteDeviceLinkRule( // build response file name std::string responseFlag = this->GetMakefile()->GetSafeDefinition( - "CMAKE_CUDA_RESPONSE_FILE_LINK_FLAG"); + "CMAKE_CUDA_RESPONSE_FILE_DEVICE_LINK_FLAG"); if (!useResponseFile || responseFlag.empty()) { vars.Objects = "$in"; @@ -311,7 +311,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkRule(bool useResponseFile, if (flag) { responseFlag = flag; - } else if (this->TargetLinkLanguage(config) != "CUDA") { + } else { responseFlag = "@"; } |