commit | 0002e287c292d59cea040ce8ee56e3e5a3cb81bc | [log] [tgz] |
---|---|---|
author | Ewout van Bekkum <ewout@google.com> | Tue Sep 13 20:32:49 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Sep 13 20:32:49 2022 +0000 |
tree | 9576236f6627d97501cec08979f7ee9aff6a45dd | |
parent | e2d0d1446bf47d6207c3f4996f53a1662b621ae7 [diff] |
pw_build/cmake: Add pw_target_link_targets helper Adds a helper function to wrap target_link_libraries which is stricter in the sense that only CMake targets are supported and at the end of configuration it is confirmed that they all exist. This helps mitigate the risk of typos in dependencies and prohibits direct library names, library files, link flags, and generator expressions which are ordinarily supported by target_link_libraries. This also updates most of the Pigweed CMake functions to use the new helper instead of target_link_libraries, except for pw_add_test as one of the callers still uses generator expressions. Change-Id: Ia589cf826ac4604c9e11f1d5cde1eff2dc3e4d66 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/109952 Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Reviewed-by: Wyatt Hepler <hepler@google.com> Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.