ReplaceImportedTargets¶
Adds the replace_imported_targets()
command that useful to
replace paths with imported targets in link variables (like
<FOO>_LIBRARIES
) and targets.
-
replace_imported_targets
¶
Replace imported targets in a list of and targets and paths:
replace_imported_targets(<var> [target [target [...]]])
Each path in var
corrisponding to one of the targets
will be
replaced with the corrisponding target
, taking care to remove the
relative optimized
and debug
keywords.
For each existing target in var
, the following properties will be
searched for imported locations of targets, and, if set, will be
replaced in the same way:
IMPORTED_LINK_DEPENDENT_LIBRARIES
IMPORTED_LINK_DEPENDENT_LIBRARIES_<CONFIG>
IMPORTED_LINK_INTERFACE_LIBRARIES
IMPORTED_LINK_INTERFACE_LIBRARIES_<CONFIG>
INTERFACE_LINK_LIBRARIES
LINK_INTERFACE_LIBRARIES
LINK_INTERFACE_LIBRARIES_<CONFIG>
LINK_LIBRARIES