diff options
author | Rafael Stahl <dummdoof-doof@web.de> | 2023-05-26 07:23:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-05-31 15:44:10 (GMT) |
commit | 45584508fa26a20981e2b3db08a11cc797f78727 (patch) | |
tree | 100f381c2b35f2166bb664f678d81fab8b6d0fd2 /Source/cmGeneratorTarget.cxx | |
parent | a645a80040d35162ba34ddec39b1b90b2466b72f (diff) | |
download | CMake-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.cxx | 2 |
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 += ","; } } |