Skip to content

fileapi: Fix codemodel target install destination for cross-dir rules

Brad King requested to merge brad.king/cmake:fileapi-install-generators into master

Since commit !2152 (merged) we support calling install(TARGETS) for targets created in another directory. However, install generators are associated with the directory in which the call to install() appears. This may not be the same directory in which the target is defined. Record in each target the list of install generators it has.

Fixes: #19546 (closed)

Merge request reports