From 8c8c0f65e322f6599bfe0e7d0752c386f1275bd5 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Fri, 12 Jun 2020 21:34:52 +0200 Subject: CMake: Generate .prl files for plugins in static Qt builds To successfully link plugins of a static Qt build into a Qt project we need to generate .prl files for the plugins. Task-number: QTBUG-84781 Change-Id: I1406052f2269050aa7cbe6aa2b546bece1c68467 Reviewed-by: Alexandru Croitor --- cmake/QtPostProcess.cmake | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'cmake/QtPostProcess.cmake') diff --git a/cmake/QtPostProcess.cmake b/cmake/QtPostProcess.cmake index feb20a50cd..06afd4583c 100644 --- a/cmake/QtPostProcess.cmake +++ b/cmake/QtPostProcess.cmake @@ -528,7 +528,10 @@ if (ANDROID) endif() # Install prl files -qt_install(DIRECTORY "${PROJECT_BINARY_DIR}/${INSTALL_LIBDIR}/" - DESTINATION ${INSTALL_LIBDIR} - FILES_MATCHING PATTERN "*.prl" -) +get_property(prl_install_dirs GLOBAL PROPERTY QT_PRL_INSTALL_DIRS) +foreach(prl_install_dir ${prl_install_dirs}) + qt_install(DIRECTORY "${PROJECT_BINARY_DIR}/${prl_install_dir}/" + DESTINATION ${prl_install_dir} + FILES_MATCHING PATTERN "*.prl" + ) +endforeach() -- cgit v1.2.3