Skip to content

Commit e352358

Browse files
committed
Revert "Fix custom includedir & libdir substitution in pkg-config"
1 parent da0c50f commit e352358

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ SET(LIB_SUFFIX "" CACHE STRING "Optional arch-dependent suffix for the library i
2727

2828
SET(RUNTIME_INSTALL_DIR bin
2929
CACHE PATH "Install dir for executables and dlls")
30-
SET(ARCHIVE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}
30+
SET(ARCHIVE_INSTALL_DIR lib${LIB_SUFFIX}
3131
CACHE PATH "Install dir for static libraries")
32-
SET(LIBRARY_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}
32+
SET(LIBRARY_INSTALL_DIR lib${LIB_SUFFIX}
3333
CACHE PATH "Install dir for shared libraries")
34-
SET(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/include
34+
SET(INCLUDE_INSTALL_DIR include
3535
CACHE PATH "Install dir for headers")
3636
SET(PACKAGE_INSTALL_DIR lib${LIB_SUFFIX}/cmake
3737
CACHE PATH "Install dir for cmake package config files")

pkg-config/jsoncpp.pc.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
prefix=@CMAKE_INSTALL_PREFIX@
22
exec_prefix=${prefix}
3-
libdir=@LIBRARY_INSTALL_DIR@
4-
includedir=@INCLUDE_INSTALL_DIR@
3+
libdir=${exec_prefix}/@LIBRARY_INSTALL_DIR@
4+
includedir=${prefix}/@INCLUDE_INSTALL_DIR@
55

66
Name: jsoncpp
77
Description: A C++ library for interacting with JSON

0 commit comments

Comments
 (0)