(0038232)
|
Brad King
|
2015-03-17 14:08
|
|
The design of MAP_IMPORTED_CONFIG_* intended that if it is defined then it always points to complete configurations instead of using the fallback. It was designed back when the only imported targets were those generated by export() and install(EXPORT) which always have complete IMPORTED_LOCATION_<CONFIG> values and never use IMPORTED_LOCATION. Also it was originally designed to be set on a per-target basis where for each target one knows whether IMPORTED_LOCATION_<MAPPED-CONFIG> is defined, and if not one can just leave out the mapping to use IMPORTED_LOCATION.
What you propose is to map configurations but if the IMPORTED_LOCATION_<MAPPED-CONFIG> is not available still fall back to IMPORTED_LOCATION. I think this is reasonable if you want to try a patch for it (with tests). |
|