aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChristophe Marin <christophe@krop.fr>2023-04-08 13:17:54 +0200
committerLinus Jahn <lnj@kaidan.im>2023-04-29 12:31:00 +0200
commite759cf3ccb24148924047761c3149cfb845dc030 (patch)
treedc4ea31f2491b287422f9f3d1e59d0b2124d91ad /CMakeLists.txt
parentb44a7ee310bd2c9bc7c0d234ab7a96c501d20559 (diff)
Fix the generated qxmpp pkgconfig files
The include directory and link targets changed. Also add a backward compatible pkgconfig file for Qt5 builds.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cdcc2428..fa41b2ce 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -126,16 +126,16 @@ install(
)
# Generate QXmppQt5/6.pc
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/qxmpp.pc.in ${CMAKE_CURRENT_BINARY_DIR}/qxmpp.pc @ONLY)
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/qxmpp.pc.in ${CMAKE_CURRENT_BINARY_DIR}/${QXMPP_TARGET}.pc @ONLY)
install(
- FILES ${CMAKE_CURRENT_BINARY_DIR}/qxmpp.pc
- RENAME QXmppQt${QT_VERSION_MAJOR}.pc
+ FILES ${CMAKE_CURRENT_BINARY_DIR}/${QXMPP_TARGET}.pc
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
COMPONENT Devel
)
# "qxmpp.pc" for backwards-compatibility
if(QT_VERSION_MAJOR EQUAL 5)
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/qxmpp_legacy.pc.in ${CMAKE_CURRENT_BINARY_DIR}/qxmpp.pc @ONLY)
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/qxmpp.pc
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"