From 4f60461ff1ff2ac2241a6b46ab15e4bcaec5dc23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= <daschuer@mixxx.org> Date: Tue, 20 Dec 2022 11:12:41 +0100 Subject: [PATCH] Improvements --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ccd39790da7..b5bf7d11b494 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1486,7 +1486,9 @@ endif() if(APPLE OR WIN32) # qt_de.qm is just one arbitrary file in the directory that needs to be located; # there is no particular reason to look for this file versus any other one in the directory. - find_file(QT_TRANSLATION_FILE qt_de.qm PATHS "${Qt5_DIR}" PATH_SUFFIXES ../../../translations ../../qt5/translations REQUIRED NO_DEFAULT_PATH) + set(CMAKE_FIND_DEBUG_MODE TRUE) + find_file(QT_TRANSLATION_FILE qt_de.qm PATHS "${Qt5_DIR}/../../../translations" "${Qt5_DIR}/../../qt5/translations" REQUIRED NO_DEFAULT_PATH) + set(CMAKE_FIND_DEBUG_MODE FALSE) get_filename_component(QT_TRANSLATIONS ${QT_TRANSLATION_FILE} DIRECTORY) install( DIRECTORY "${QT_TRANSLATIONS}"