Skip to content

[C/C++] CMake: Package configuration INSTALL_DESTINATION doesn't match the actual install destination #1533

@ethanmusser

Description

@ethanmusser

The configured package configuration file's INSTALL_DESTINATION does not match the actual install DESTINATION. This breaks the relocatability of the package configuration file.

configure_package_config_file(
${CMAKE_CURRENT_SOURCE_DIR}/libsbpConfig.cmake.in
libsbpConfig.cmake
INSTALL_DESTINATION ${CMAKE_INSTALL_DATADIR}
)
install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/libsbpConfig.cmake"
DESTINATION ${CMAKE_INSTALL_DATADIR}/libsbp/cmake
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions