mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 06:40:16 -05:00
CUDA: device linking obeys CMAKE_CUDA_VISIBILITY_PRESET setting
Fixes #24272
This commit is contained in:
@@ -1408,7 +1408,7 @@ void cmLocalGenerator::GetDeviceLinkFlags(
|
||||
linkPath);
|
||||
}
|
||||
|
||||
// iterate link deps and see if any of them need IPO
|
||||
this->AddVisibilityPresetFlags(linkFlags, target, "CUDA");
|
||||
|
||||
std::vector<std::string> linkOpts;
|
||||
target->GetLinkOptions(linkOpts, config, "CUDA");
|
||||
|
||||
Reference in New Issue
Block a user