diff options
author | Raul Tambre <raul@tambre.ee> | 2021-11-06 10:54:07 (GMT) |
---|---|---|
committer | Raul Tambre <raul@tambre.ee> | 2021-11-08 19:26:00 (GMT) |
commit | 4707ecbe6fed1e135785f9fe9734a4c66807dd77 (patch) | |
tree | 1519f6d6bec23dcd2518284d030876e2c073f582 /Source/cmMakefileTargetGenerator.cxx | |
parent | 15fde4c420e0fa469077fad020b9fdc071796f70 (diff) | |
download | CMake-4707ecbe6fed1e135785f9fe9734a4c66807dd77.zip CMake-4707ecbe6fed1e135785f9fe9734a4c66807dd77.tar.gz CMake-4707ecbe6fed1e135785f9fe9734a4c66807dd77.tar.bz2 |
CUDA: Support CMP0105 on Clang
Add link flags during the "device compile" step.
Enabled the relevant tests. The disable reasons regarding separable compilation
were outdated and the actual failure case was device link flags support.
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index 67beaad..8230848 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -1624,6 +1624,10 @@ void cmMakefileTargetGenerator::WriteDeviceLinkRule( vars.Fatbinary = fatbinaryOutput.c_str(); vars.RegisterFile = registerFile.c_str(); + std::string linkFlags; + this->GetDeviceLinkFlags(linkFlags, "CUDA"); + vars.LinkFlags = linkFlags.c_str(); + std::string flags = this->GetFlags("CUDA", this->GetConfigName()); vars.Flags = flags.c_str(); |