mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-28 12:00:07 +08:00
e6f1cffdd3
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: https://github.com/open-source-parsers/jsoncpp/issues/279 Signed-off-by: Michał Górny <mgorny@gentoo.org>
12 lines
313 B
PkgConfig
12 lines
313 B
PkgConfig
prefix=@CMAKE_INSTALL_PREFIX@
|
|
exec_prefix=${prefix}
|
|
libdir=@LIBRARY_INSTALL_DIR@
|
|
includedir=@INCLUDE_INSTALL_DIR@
|
|
|
|
Name: jsoncpp
|
|
Description: A C++ library for interacting with JSON
|
|
Version: @JSONCPP_VERSION@
|
|
URL: https://github.com/open-source-parsers/jsoncpp
|
|
Libs: -L${libdir} -ljsoncpp
|
|
Cflags: -I${includedir}
|