Skip to content

Commit

Permalink
CMake: Fix value of QMAKE_PRL_TARGET in generated .prl files
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jobor committed Nov 25, 2020
1 parent 9b84ea6 commit 89b49e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/QtPrlHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ function(qt_generate_prl_file target install_dir)
set(prl_step1_content
"RCC_OBJECTS = ${rcc_objects}
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_VERSION = ${PROJECT_VERSION}
${prl_step1_content_libs}
Expand Down

0 comments on commit 89b49e5

Please sign in to comment.