diff options
author | Brad King <brad.king@kitware.com> | 2023-12-07 14:14:51 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-12-07 14:15:04 (GMT) |
commit | 944a9c35cc002f19b3cad3868da08b4f21c0e556 (patch) | |
tree | 70b4cc2fc7a27055a42ee827ee7a87f9a8a4502d | |
parent | f0deb107c58c852f5d66fa926031c0ac1ffb14e7 (diff) | |
parent | 6b85c71ad8abffa7ea915e5dde8a809a0a4c493f (diff) | |
download | CMake-944a9c35cc002f19b3cad3868da08b4f21c0e556.zip CMake-944a9c35cc002f19b3cad3868da08b4f21c0e556.tar.gz CMake-944a9c35cc002f19b3cad3868da08b4f21c0e556.tar.bz2 |
Merge topic 'makefiles-lwyu-module-libraries'
6b85c71ad8 Makefiles: Add LINK_WHAT_YOU_USE support for MODULE libraries
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9042
-rw-r--r-- | Source/cmMakefileLibraryTargetGenerator.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx index 0429155..bc48a3b 100644 --- a/Source/cmMakefileLibraryTargetGenerator.cxx +++ b/Source/cmMakefileLibraryTargetGenerator.cxx @@ -218,6 +218,9 @@ void cmMakefileLibraryTargetGenerator::WriteModuleLibraryRules(bool relink) extraFlags, this->GeneratorTarget, linkLineComputer.get(), this->GetConfigName()); + this->UseLWYU = this->LocalGenerator->AppendLWYUFlags( + extraFlags, this->GeneratorTarget, linkLanguage); + this->WriteLibraryRules(linkRuleVar, extraFlags, relink); } |