Skip to content

Fix CMake install absolute path to support --prefix option #23

@x12301450

Description

@x12301450

In the line 533 of libraries/CMakeLists.txt, the absolute path "/usr/lib" is set to be the destination of install()

However, when attempting to use the --prefix option to relocate the installation destination, using an absolute path causes the installation to fail. This prevents the installation to custom prefixes and could lead to unintended issues.

There are numerous similar fixes, such as this example.

I think the path used in install(DESTINATION) should be set to a relative path to prevent such issues.

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