[cmake] generate relative pkgconfig path

generate the relative pkgconfig path from the actual install locations.
fixes #9718
This commit is contained in:
akallabeth
2024-01-02 19:51:33 +01:00
committed by akallabeth
parent 09c1269962
commit f6a208f75e
10 changed files with 17 additions and 10 deletions

View File

@@ -39,7 +39,7 @@ if (NOT RDTK_FORCE_STATIC_BUILD)
set(RDTK_INSTALL_INCLUDE_DIR ${RDTK_INCLUDE_DIR}/rdtk)
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/rdtk${RDTK_VERSION_MAJOR}.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
DESTINATION ${PKG_CONFIG_PC_INSTALL_DIR})
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/rdtkConfig.cmake