Skip to content

[C/C++] CMake: Install interface is relative to the lib directory #1532

@ethanmusser

Description

@ethanmusser

The sbp target's install interface is relative to the lib directory. Common convention places this relative to the include directory. As a result of the current configuration, library consumers will look in the lib directory for the headers.

$<INSTALL_INTERFACE:${CMAKE_INSTALL_LIBDIR}>

Proposed Solution

Replace the above line with the following.

$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>

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