Skip to content

pkg-config generating incorrect libdir and includedir #424

Description

@poscat0x04

build log: https://fars.ee/PUi5
The generated rime.pc:

prefix=/nix/store/48ywhfwynqww0c1n0b6h1bv07hws7q1n-librime-1.6.1
exec_prefix=/nix/store/48ywhfwynqww0c1n0b6h1bv07hws7q1n-librime-1.6.1
libdir=/nix/store/48ywhfwynqww0c1n0b6h1bv07hws7q1n-librime-1.6.1//nix/store/48ywhfwynqww0c1n0b6h1bv07hws7q1n-librime-1.6.1/lib
includedir=/nix/store/48ywhfwynqww0c1n0b6h1bv07hws7q1n-librime-1.6.1//nix/store/48ywhfwynqww0c1n0b6h1bv07hws7q1n-librime-1.6.1/include

Name: Rime
Description: Rime Input Method Engine
Version: 1.6.1
Cflags: -I${includedir}
Libs: -L${libdir} -lrime

Note that both CMAKE_INSTALL_PREFIX and CMAKE_INSTALL_BINDIR can be absolute paths so concatenating them does not guarantee to yield a meaningful path.

relevant part of CMakeList.txt

This is caused by commit 0e96e51 and #327

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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