Skip to content

Fix CMake-configured pkg-config files. - #126

Open
apteryks wants to merge 1 commit into
e-dant:releasefrom
apteryks:fix-pkg-config-file
Open

apteryks wants to merge 1 commit into
e-dant:releasefrom
apteryks:fix-pkg-config-file

Conversation

@apteryks

@apteryks apteryks commented Sep 3, 2026

Copy link
Copy Markdown

Before this change, CMake would complain that the includedir contained
a relative directory ("Target "_alias_PkgConfigWATCHER" contains
relative path in its").

  • watcher-c/watcher-c.pc.in (libdir): Add missing ${exec_prefix} prefix.
    (includedir): Add missing ${prefix}/ prefix.
    (Requires, Conflicts): Remove unused fields.
  • watcher.pc.in: Likewise.
  • CMakeLists.txt: Use APPEND to add Threads::Threads to
    LINK_LIBRARIES, to avoid residual ';' prefix in value.
    (PC_WATCHER_PREFIX): New variable.
    (PC_LIBWATCHER_C_PREFIX): Likewise.

Fixes: #82

Before this change, CMake would complain that the includedir contained
a relative directory ("Target "_alias_PkgConfigWATCHER" contains
relative path in its").

* watcher-c/watcher-c.pc.in (libdir): Add missing ${exec_prefix} prefix.
(includedir): Add missing ${prefix}/ prefix.
(Requires, Conflicts): Remove unused fields.
* watcher.pc.in: Likewise.
* CMakeLists.txt: Use APPEND to add Threads::Threads to
LINK_LIBRARIES, to avoid residual ';' prefix in value.
(PC_WATCHER_PREFIX): New variable.
(PC_LIBWATCHER_C_PREFIX): Likewise.

Fixes: e-dant#82

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature-request] Add missing CMake config or pkg-config file

1 participant