summaryrefslogtreecommitdiffstats
path: root/Source/cmGhsMultiTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-08-03 13:42:05 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-08-03 13:42:17 (GMT)
commitf6917a2f1f434ddb5c27ba59e3332f2d92e66057 (patch)
treeaad89df31c44f1368af9ccd449c79fc968176b87 /Source/cmGhsMultiTargetGenerator.cxx
parenta7dc0f0b91a45614d90c811711a42f865d5448b4 (diff)
parent96bc59b1ca01be231347404d178445263687dd22 (diff)
downloadCMake-f6917a2f1f434ddb5c27ba59e3332f2d92e66057.zip
CMake-f6917a2f1f434ddb5c27ba59e3332f2d92e66057.tar.gz
CMake-f6917a2f1f434ddb5c27ba59e3332f2d92e66057.tar.bz2
Merge topic 'cuda_add_lto_support'
96bc59b1ca CUDA: Add Device LTO support for nvcc 1527d48cd0 CheckIPO: Refactor logic selecting test source files 4a552ab4ad remove unused variables 6eda92d037 remove unused variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7389
Diffstat (limited to 'Source/cmGhsMultiTargetGenerator.cxx')
-rw-r--r--Source/cmGhsMultiTargetGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGhsMultiTargetGenerator.cxx b/Source/cmGhsMultiTargetGenerator.cxx
index bf019c3..138d3f1 100644
--- a/Source/cmGhsMultiTargetGenerator.cxx
+++ b/Source/cmGhsMultiTargetGenerator.cxx
@@ -183,8 +183,8 @@ void cmGhsMultiTargetGenerator::SetCompilerFlags(std::string const& config,
auto i = this->FlagsByLanguage.find(language);
if (i == this->FlagsByLanguage.end()) {
std::string flags;
- this->LocalGenerator->AddLanguageFlags(flags, this->GeneratorTarget,
- language, config);
+ this->LocalGenerator->AddLanguageFlags(
+ flags, this->GeneratorTarget, cmBuildStep::Compile, language, config);
this->LocalGenerator->AddCMP0018Flags(flags, this->GeneratorTarget,
language, config);
this->LocalGenerator->AddVisibilityPresetFlags(