LINK_WHAT_YOU_USE adds -Wl,--no-as-needed to static libraries
When I enable the LINK_WHAT_YOU_USE option with cmake version 3.21.* I am finding that this now adds the "-Wl,--no-as-needed" linker option to the archiver used for static libraries. This option is not valid for the archiver and as a result the build fails. If I rollback my cmake version to 3.18.5 everything works as expected. I am operating on production code so I did not pin down the exact version that exposes this bug.
Edited by ajpenner