linked_install: CMake improvements