summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorRafael Stahl <dummdoof-doof@web.de>2023-05-26 07:23:15 (GMT)
committerBrad King <brad.king@kitware.com>2023-05-31 15:44:10 (GMT)
commit45584508fa26a20981e2b3db08a11cc797f78727 (patch)
tree100f381c2b35f2166bb664f678d81fab8b6d0fd2 /Source/cmGeneratorTarget.cxx
parenta645a80040d35162ba34ddec39b1b90b2466b72f (diff)
downloadCMake-45584508fa26a20981e2b3db08a11cc797f78727.zip
CMake-45584508fa26a20981e2b3db08a11cc797f78727.tar.gz
CMake-45584508fa26a20981e2b3db08a11cc797f78727.tar.bz2
CUDA/NVIDIA: fix LTO with explicit architectures
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-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 += ",";
}
}