Skip to content

Commit

Permalink
Use full CMake paths in pkg-config template
Browse files Browse the repository at this point in the history
Using full paths is more versatile. The current solution
breaks when specifying an absolute path for CMAKE_INSTALL_INCLUDEDIR
which is an otherwise supported option by CMake's GNUInstallDirs.
CMake does not support Autoconf-style ${prefix}-pseudo variables,
hence trying to emulate the behaviour gains us nothing and breaks
providing absolute paths to CMAKE_INSTALL_LIBDIR.
  • Loading branch information
SoapGentoo authored and cdunn2001 committed Mar 9, 2017
1 parent 8106574 commit 2f178f3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg-config/jsoncpp.pc.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@

Name: jsoncpp
Description: A C++ library for interacting with JSON
Expand Down

0 comments on commit 2f178f3

Please sign in to comment.