CUDA: device linking obeys CMAKE_CUDA_VISIBILITY_PRESET setting

Fixes #24272
This commit is contained in:
Robert Maynard
2023-01-12 10:36:25 -05:00
committed by unknown
parent df978c5aa8
commit 0c56bdf91e
7 changed files with 33 additions and 14 deletions
+1 -1
View File
@@ -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");