diff options
author | Brad King <brad.king@kitware.com> | 2020-02-24 18:36:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-02-24 18:36:24 (GMT) |
commit | 0aa91f9a66bcef73fc19d8b3ea4feeec5476d52e (patch) | |
tree | dbb1426af7b60e8356dc1e2fd43af88626524609 /Source | |
parent | 0f0d8f5b6f785751335bcdce1d57ba76dd48afa1 (diff) | |
parent | 738f3f23aa50749f27a0ee6ea61e7e0f7e52313a (diff) | |
download | CMake-0aa91f9a66bcef73fc19d8b3ea4feeec5476d52e.zip CMake-0aa91f9a66bcef73fc19d8b3ea4feeec5476d52e.tar.gz CMake-0aa91f9a66bcef73fc19d8b3ea4feeec5476d52e.tar.bz2 |
Merge branch 'backport-cuda-non-device-link' into release-3.16
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 beedef4..a458cac 100644 --- a/Source/cmNinjaNormalTargetGenerator.cxx +++ b/Source/cmNinjaNormalTargetGenerator.cxx @@ -178,7 +178,7 @@ void cmNinjaNormalTargetGenerator::WriteDeviceLinkRule(bool useResponseFile) // 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"; @@ -286,7 +286,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkRule(bool useResponseFile) if (flag) { responseFlag = flag; - } else if (this->TargetLinkLanguage != "CUDA") { + } else { responseFlag = "@"; } |