From: Björn Esser Date: Sun, 12 Apr 2020 17:21:54 +0000 (+0200) Subject: CMake: Install pkgconfig file in proper location by default X-Git-Tag: json-c-0.14-20200419~15^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F578%2Fhead;p=thirdparty%2Fjson-c.git CMake: Install pkgconfig file in proper location by default The default location for pkconfig files on most systems is: ${CMAKE_INSTALL_LIBDIR}/pkgconfig Thus the file should get installed in there by default. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b36f1ca..60f529a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -423,7 +423,7 @@ if (UNIX OR MINGW OR CYGWIN) SET(includedir ${CMAKE_INSTALL_FULL_INCLUDEDIR}) SET(VERSION ${PROJECT_VERSION}) configure_file(json-c.pc.in json-c.pc @ONLY) - set(INSTALL_PKGCONFIG_DIR "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig" CACHE PATH "Installation directory for pkgconfig (.pc) files") + set(INSTALL_PKGCONFIG_DIR "${CMAKE_INSTALL_LIBDIR}/pkgconfig" CACHE PATH "Installation directory for pkgconfig (.pc) files") install(FILES ${PROJECT_BINARY_DIR}/json-c.pc DESTINATION "${INSTALL_PKGCONFIG_DIR}") endif ()