summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Esser <besser82@fedoraproject.org>2020-04-12 19:21:54 +0200
committerBjörn Esser <besser82@fedoraproject.org>2020-04-12 19:21:54 +0200
commit165e6f58fca213efdfc5b2a0037f39198b8a08c3 (patch)
tree19dea49bbb14238f78614929523303496772741a
parent8269f909565edca08f12918fb5ad19fc7edb6fd1 (diff)
downloadjson-c-165e6f58fca213efdfc5b2a0037f39198b8a08c3.tar.gz
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.
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1b36f1c..60f529a 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 ()