Teach MAP_IMPORTED_CONFIG_<CONFIG> to support configuration-less import

If this property has an empty list entry, check for `IMPORTED_LOCATION`
instead of `IMPORTED_LOCATION_<CONFIG>`.  This allows custom imported
targets to have some configurations mapped and others fall back to a
default location.

Closes: #16280
This commit is contained in:
Jens Weggemann
2016-10-19 03:39:51 +02:00
committed by Brad King
parent 60d73393a5
commit 149d49ea7c
3 changed files with 40 additions and 16 deletions
@@ -0,0 +1,6 @@
allow-fallback-config-mapping
-----------------------------
* The :prop_tgt:`MAP_IMPORTED_CONFIG_<CONFIG>` target property learned
to interpret empty list elements as referring to the configuration-less
imported location specified by :prop_tgt:`IMPORTED_LOCATION`.