Add new target-property `IMPORTED_GLOBAL`.
This merge-request adds a new target-property IMPORTED_GLOBAL which indicates if an IMPORTED target has global scope.
It will automatically be set to TRUE if the IMPORTED target is created with the GLOBAL option to add_executable and add_library.
However, a local IMPORTED target can be promoted to global scope by setting IMPORTED_GLOBAL to TRUE. (This, however, only works from within the same directory where the target was originally created.)
Fixes: #17256 (closed)
Topic-rename: imported-promotion
Edited by Brad King