Skip to content

fish assumes CMAKE_INSTALL_DATADIR must be relative #8150

@jpalus

Description

@jpalus

CMAKE_INSTALL_DATADIR can be both relative, in which case CMake will add CMAKE_INSTALL_PREFIX or absolute when prefix is not added. fish assumes only relative path can be passed and if absolute path is used pkgconfig file is broken with prefix added:

set(rel_datadir ${CMAKE_INSTALL_DATADIR})

fish-shell/fish.pc.in

Lines 1 to 2 in b0dc72e

prefix=@prefix@
datadir=${prefix}/@rel_datadir@

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions