Skip to content

Request: Relocatable cmake export files #526

@sei-mwd

Description

@sei-mwd

When installed, the cmake export files yaml-cpp-targets*.cmake contain absolute paths to the import prefix. cmake documentation seems to imply that these files can (and should) contain paths relative to these cmake files instead. This allows one to install to a prefix, then to move all the files to a new prefix, allowing things to continue to work. cmake documentation is awful, though, and I can't figure out what changes to CMakeLists.txt would make this work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions