[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

@@ -474,7 +474,7 @@ set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "FreeRDP/libfreerdp")
include(pkg-config-install-prefix)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/freerdp.pc.in ${CMAKE_CURRENT_BINARY_DIR}/freerdp${FREERDP_VERSION_MAJOR}.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/freerdp${FREERDP_VERSION_MAJOR}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/freerdp${FREERDP_VERSION_MAJOR}.pc DESTINATION ${PKG_CONFIG_PC_INSTALL_DIR})
## cmake project
export(PACKAGE freerdp)