Skip to content

Conversation

@mgorny
Copy link
Contributor

@mgorny mgorny commented May 19, 2015

Do not prepend ${prefix} to substituted includedir & libdir
in the pkg-config file -- if the paths are overriden by user, CMake puts
absolute paths there (even if user specifies a relative path). Instead,
use the absolute path provided by CMake and appropriately default
LIBRARY_INSTALL_DIR & INCLUDE_INSTALL_DIR to absolute paths with
${CMAKE_INSTALL_PREFIX} prepended.

Fixes: #279

Do not prepend ${prefix} to substituted includedir & libdir
in the pkg-config file -- if the paths are overriden by user, CMake puts
absolute paths there (even if user specifies a relative path). Instead,
use the absolute path provided by CMake and appropriately default
LIBRARY_INSTALL_DIR & INCLUDE_INSTALL_DIR to absolute paths with
${CMAKE_INSTALL_PREFIX} prepended.

Fixes: #279
Signed-off-by: Michał Górny <mgorny@gentoo.org>
cdunn2001 added a commit that referenced this pull request May 21, 2015
Fix custom includedir & libdir substitution in pkg-config
@cdunn2001 cdunn2001 merged commit b389d81 into open-source-parsers:master May 21, 2015
@mgorny mgorny deleted the pkg-config-fix branch May 21, 2015 15:39
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.

pkg-config file contains incorrect path when INCLUDE_INSTALL_DIR is overriden

2 participants