mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
Makefiles: Add LINK_WHAT_YOU_USE support for MODULE libraries
This was accidentally left out by Makefile generators. It already works with Ninja. Fixes: #25480
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user