summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-06-01 13:49:06 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-06-01 13:49:15 (GMT)
commit54a4aa57791b0d70045182cee4f1f5cb55a2a61c (patch)
tree7d4eadef304bfb6dbccf8dd5868a011171d781d6 /Source
parentaa3675d28186124a3175b89ed9bfd426c5d6b530 (diff)
parent45584508fa26a20981e2b3db08a11cc797f78727 (diff)
downloadCMake-54a4aa57791b0d70045182cee4f1f5cb55a2a61c.zip
CMake-54a4aa57791b0d70045182cee4f1f5cb55a2a61c.tar.gz
CMake-54a4aa57791b0d70045182cee4f1f5cb55a2a61c.tar.bz2
Merge topic 'cuda-ipo-arch'
45584508fa CUDA/NVIDIA: fix LTO with explicit architectures Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Raul Tambre <raul@tambre.ee> Merge-request: !8508
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGeneratorTarget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index f8455c8..2d71492 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -3504,7 +3504,7 @@ void cmGeneratorTarget::AddCUDAArchitectureFlags(cmBuildStep compileOrLink,
if (architecture.virtual_) {
flags += "compute_" + architecture.name;
- if (architecture.real) {
+ if (ipoEnabled || architecture.real) {
flags += ",";
}
}