From a021b5e09fed671195c0a8faf3b13d83a699dc9f Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Tue, 23 Aug 2022 09:47:08 +0200 Subject: [PATCH] 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 --- cmake/QtPrlHelpers.cmake | 1 - 1 file changed, 1 deletion(-) diff --git a/cmake/QtPrlHelpers.cmake b/cmake/QtPrlHelpers.cmake index 68e413ee8c1..45bfaedcdf6 100644 --- a/cmake/QtPrlHelpers.cmake +++ b/cmake/QtPrlHelpers.cmake @@ -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 = $ QMAKE_PRL_TARGET_PATH_FOR_CMAKE = $ QMAKE_PRL_CONFIG = ${prl_config}