mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 04:09:33 -05:00
CUDA: Now pass correct FLAGS when device link cuda executables.
Previously we had a two issues when building cuda executables that required separable compilation. The first was that we didn't propagate FLAGS causing any -arch / -gencode flags to be dropped, and secondly generators such as ninja would use the CXX language flags instead of CUDA when the executable was mixed language.
This commit is contained in:
committed by
Brad King
parent
dc5051f1c1
commit
8d1f9e5b85
@@ -59,6 +59,12 @@ std::string cmLinkLineDeviceComputer::ComputeLinkLibraries(
|
||||
return fout.str();
|
||||
}
|
||||
|
||||
std::string cmLinkLineDeviceComputer::GetLinkerLanguage(cmGeneratorTarget*,
|
||||
std::string const&)
|
||||
{
|
||||
return "CUDA";
|
||||
}
|
||||
|
||||
cmNinjaLinkLineDeviceComputer::cmNinjaLinkLineDeviceComputer(
|
||||
cmOutputConverter* outputConverter, cmStateDirectory stateDir,
|
||||
cmGlobalNinjaGenerator const* gg)
|
||||
|
||||
Reference in New Issue
Block a user