mirror of
https://github.com/reactos/CMake.git
synced 2024-11-23 11:39:48 +00:00
Merge branch 'backport-cuda-non-device-link' into release-3.16
Merge-request: !4376
This commit is contained in:
commit
0aa91f9a66
@ -43,6 +43,6 @@ set(CMAKE_CUDA_USE_RESPONSE_FILE_FOR_LIBRARIES 0)
|
||||
set(CMAKE_CUDA_USE_RESPONSE_FILE_FOR_OBJECTS 0)
|
||||
|
||||
if (CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL "9.0")
|
||||
set(CMAKE_CUDA_RESPONSE_FILE_LINK_FLAG "--options-file ")
|
||||
set(CMAKE_CUDA_RESPONSE_FILE_DEVICE_LINK_FLAG "--options-file ")
|
||||
set(CMAKE_CUDA_RESPONSE_FILE_FLAG "--options-file ")
|
||||
endif()
|
||||
|
@ -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 = "@";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user