CMake: Don't write QMAKE_PRL_BUILD_DIR to Qt's .prl files
Having the build directory encoded in installed files impedes reproducible builds. QMAKE_PRL_BUILD_DIR is exclusively used by qmake if 'depend_prl' or 'fast_depend_prl' is active. This is useful for tracking the interdependencies of libraries within a project but not for Qt's installed libraries. Even the qmake-based Qt build never used this feature. Fixes: QTBUG-97386 Change-Id: Icd0801edc1ad92a99fff3a1e92b5f660914813b2 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
4b3cb1329a
commit
a021b5e09f
@ -108,7 +108,6 @@ function(qt_generate_prl_file target install_dir)
|
||||
# whose names we know, and can be used in add_custom_command.
|
||||
set(prl_step1_content
|
||||
"RCC_OBJECTS = ${rcc_objects}
|
||||
QMAKE_PRL_BUILD_DIR = ${CMAKE_CURRENT_BINARY_DIR}
|
||||
QMAKE_PRL_TARGET = $<TARGET_LINKER_FILE_NAME:${target}>
|
||||
QMAKE_PRL_TARGET_PATH_FOR_CMAKE = $<TARGET_LINKER_FILE:${target}>
|
||||
QMAKE_PRL_CONFIG = ${prl_config}
|
||||
|
Loading…
Reference in New Issue
Block a user