[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

@@ -43,5 +43,5 @@ if (NOT UWAC_FORCE_STATIC_BUILD)
configure_file(uwac.pc.in ${CMAKE_CURRENT_BINARY_DIR}/uwac${UWAC_VERSION_MAJOR}.pc @ONLY)
set(UWAC_INSTALL_INCLUDE_DIR ${UWAC_INCLUDE_DIR}/uwac)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/uwac${UWAC_VERSION_MAJOR}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/uwac${UWAC_VERSION_MAJOR}.pc DESTINATION ${PKG_CONFIG_PC_INSTALL_DIR})
endif()