Skip to content

Commit 5b9ee3a

Browse files
committed
CMake: add configurable pkg-config path
Just like with JANSSON_INSTALL_CMAKE_DIR and JANSSON_INSTALL_LIB_DIR make the pkg-config installation path configurable.
1 parent 154f891 commit 5b9ee3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ else()
600600
endif()
601601

602602
set(JANSSON_INSTALL_CMAKE_DIR ${DEF_INSTALL_CMAKE_DIR} CACHE PATH "Installation directory for CMake files")
603+
set(JANSSON_INSTALL_PKGCONF_DIR ${DEF_INSTALL_PKGCONF_DIR} CACHE PATH "Installation directory for pkg-config files")
603604

604605
# Create pkg-conf file.
605606
# (We use the same files as ./configure does, so we
@@ -658,7 +659,7 @@ if (JANSSON_INSTALL)
658659
# Install the pkg-config.
659660
install(FILES
660661
${CMAKE_CURRENT_BINARY_DIR}/jansson.pc
661-
DESTINATION lib/pkgconfig)
662+
DESTINATION ${JANSSON_INSTALL_PKGCONF_DIR})
662663

663664
# Install the configs.
664665
install(FILES

0 commit comments

Comments
 (0)