CMake: Fix value of QMAKE_PRL_TARGET in generated .prl files

On DLL platforms, the value of QMAKE_PRL_TARGET should be the import
library (foo.lib), not the actual DLL (foo.dll). The genex
TARGET_LINKER_FILE_NAME provides exactly that.

Fixes: QTBUG-88864
Pick-to: 6.0
Change-Id: I553930bb840007772fe8f4612f95e0e320f54107
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Joerg Bornemann 2020-11-25 17:57:29 +01:00
parent 9b84ea6b47
commit 89b49e5231

View File

@ -334,7 +334,7 @@ function(qt_generate_prl_file target install_dir)
set(prl_step1_content set(prl_step1_content
"RCC_OBJECTS = ${rcc_objects} "RCC_OBJECTS = ${rcc_objects}
QMAKE_PRL_BUILD_DIR = ${CMAKE_CURRENT_BINARY_DIR} QMAKE_PRL_BUILD_DIR = ${CMAKE_CURRENT_BINARY_DIR}
QMAKE_PRL_TARGET = $<TARGET_FILE_NAME:${target}> QMAKE_PRL_TARGET = $<TARGET_LINKER_FILE_NAME:${target}>
QMAKE_PRL_CONFIG = ${prl_config} QMAKE_PRL_CONFIG = ${prl_config}
QMAKE_PRL_VERSION = ${PROJECT_VERSION} QMAKE_PRL_VERSION = ${PROJECT_VERSION}
${prl_step1_content_libs} ${prl_step1_content_libs}