From bd2a14ff9897b8bda0e9bd21f8472b1a5a7dd6f6 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Tue, 16 Jun 2020 10:36:50 +0200 Subject: CMake: Do not use $$[QT_INSTALL_LIBS/get] in generated .prl files We do not support building with qmake from the build directory in prefix builds. Therefore we can just use the standard QT_INSTALL_LIBS property instead of the /get variant. Change-Id: I82ccaf1894fb1dccc9ec18b4984b582b555ce0f8 Reviewed-by: Alexandru Croitor --- cmake/QtFinishPrlFile.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/QtFinishPrlFile.cmake b/cmake/QtFinishPrlFile.cmake index e584beb06b..c7c913d4ae 100644 --- a/cmake/QtFinishPrlFile.cmake +++ b/cmake/QtFinishPrlFile.cmake @@ -1,6 +1,6 @@ # Finish a preliminary .prl file. # -# - Replaces occurrences of the build libdir with $$[QT_INSTALL_LIBDIR/get]. +# - Replaces occurrences of the build libdir with $$[QT_INSTALL_LIBDIR]. # - Strips version number suffixes from absolute paths, because qmake's lflag # merging does not handle them correctly. # @@ -38,7 +38,7 @@ foreach(line ${lines}) if(IS_ABSOLUTE "${relative_lib}" OR (relative_lib MATCHES "^\\.\\.")) list(APPEND adjusted_libs "${lib}") else() - list(APPEND adjusted_libs "$$[QT_INSTALL_LIBS/get]/${relative_lib}") + list(APPEND adjusted_libs "$$[QT_INSTALL_LIBS]/${relative_lib}") endif() else() if(NOT lib MATCHES "^-l" AND NOT lib MATCHES "^-framework") -- cgit v1.2.3