Skip to content

Commit 2f178f3

Browse files
SoapGentoocdunn2001
authored andcommitted
Use full CMake paths in pkg-config template
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.
1 parent 8106574 commit 2f178f3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: pkg-config/jsoncpp.pc.in

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
prefix=@CMAKE_INSTALL_PREFIX@
2-
exec_prefix=${prefix}
3-
libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
4-
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
1+
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
2+
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
53

64
Name: jsoncpp
75
Description: A C++ library for interacting with JSON

0 commit comments

Comments
 (0)