Skip to content

Fix custom includedir & libdir substitution in pkg-config #280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2015
Merged

Fix custom includedir & libdir substitution in pkg-config #280

merged 1 commit into from
May 21, 2015

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 <[email protected]>
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