Skip to content

cmTarget: Raise error if imported target location is not set

Raul Tambre requested to merge tambre/cmake:unk_imported_location into master

Previously we would synthesize <TARGET_NAME>-NOTFOUND as the location. This would then end up on the link line and cause build failures.
Policy CMP0110 is added to control this behaviour.

Fixes #19080 (closed), #19943 (closed).

Edited by Raul Tambre

Merge request reports