summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2014-03-17 09:58:54 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-17 18:03:24 +0100
commit626f71781a1e045e583b18a4d719ee863dacbbf1 (patch)
treedde84e2b95082406774cc86a516590e84f052741
parent9a15162ad29b711ee235a957505d8858568c8119 (diff)
downloadqttools-626f71781a1e045e583b18a4d719ee863dacbbf1.tar.gz
CMake: Fix path to lrelease on debian.
Use a patch similar to qtbase/v5.2.0-alpha1~74^2^2~38 (Fix usr-move workaround in the presence of multi-arch., 2013-08-30) to include the appropriate calculation. Task-number: QTBUG-36673 Change-Id: Iea0b6c64c5959d7d6dfce922c41031183c1c23d9 Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
-rw-r--r--src/linguist/Qt5LinguistToolsConfig.cmake.in2
-rw-r--r--src/linguist/linguist.pro4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/linguist/Qt5LinguistToolsConfig.cmake.in b/src/linguist/Qt5LinguistToolsConfig.cmake.in
index fac7cc65c..ce71646f3 100644
--- a/src/linguist/Qt5LinguistToolsConfig.cmake.in
+++ b/src/linguist/Qt5LinguistToolsConfig.cmake.in
@@ -13,7 +13,7 @@ get_filename_component(_IMPORT_PREFIX \"${CMAKE_CURRENT_LIST_FILE}\" PATH)
get_filename_component(_realCurr \"${_IMPORT_PREFIX}\" REALPATH)
get_filename_component(_realOrig \"$$CMAKE_INSTALL_LIBS_DIR/cmake/Qt5LinguistTools\" REALPATH)
if(_realCurr STREQUAL _realOrig)
- get_filename_component(_qt5_linguisttools_install_prefix \"$$CMAKE_INSTALL_LIBS_DIR\" PATH)
+ get_filename_component(_qt5_linguisttools_install_prefix \"$$CMAKE_INSTALL_LIBS_DIR/$${CMAKE_RELATIVE_INSTALL_LIBS_DIR}\" ABSOLUTE)
else()
get_filename_component(_qt5_linguisttools_install_prefix \"${CMAKE_CURRENT_LIST_DIR}/$${CMAKE_RELATIVE_INSTALL_DIR}\" ABSOLUTE)
endif()
diff --git a/src/linguist/linguist.pro b/src/linguist/linguist.pro
index 2979a23e6..9cf4aa6a4 100644
--- a/src/linguist/linguist.pro
+++ b/src/linguist/linguist.pro
@@ -18,10 +18,10 @@ contains(CMAKE_INSTALL_LIBS_DIR, ^(/usr)?/lib(64)?.*): CMAKE_USR_MOVE_WORKAROUND
CMAKE_LIB_DIR = $$cmakeRelativePath($$[QT_INSTALL_LIBS], $$[QT_INSTALL_PREFIX])
!contains(CMAKE_LIB_DIR,"^\\.\\./.*") {
- CMAKE_RELATIVE_INSTALL_DIR = $$cmakeRelativePath($$[QT_INSTALL_PREFIX], $$[QT_INSTALL_LIBS])
+ CMAKE_RELATIVE_INSTALL_LIBS_DIR = $$cmakeRelativePath($$[QT_INSTALL_PREFIX], $$[QT_INSTALL_LIBS])
# We need to go up another two levels because the CMake files are
# installed in $${CMAKE_LIB_DIR}/cmake/Qt5$${CMAKE_MODULE_NAME}
- CMAKE_RELATIVE_INSTALL_DIR = "$${CMAKE_RELATIVE_INSTALL_DIR}../../"
+ CMAKE_RELATIVE_INSTALL_DIR = "$${CMAKE_RELATIVE_INSTALL_LIBS_DIR}../../"
} else {
CMAKE_LIB_DIR_IS_ABSOLUTE = True
}