From 9bd600cab6209bf89fe0fe4ca7160d175a48adf7 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Sat, 14 Oct 2023 00:15:05 +0200 Subject: [PATCH] CMake: repair ca9006a1bc6 Misplaced $, and looking for translation sources in the wrong directory, led to a test-case failure before release. --- CMakeModules/CalamaresAddTranslations.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeModules/CalamaresAddTranslations.cmake b/CMakeModules/CalamaresAddTranslations.cmake index 03e655fa4..93440ba8e 100644 --- a/CMakeModules/CalamaresAddTranslations.cmake +++ b/CMakeModules/CalamaresAddTranslations.cmake @@ -129,9 +129,9 @@ function(calamares_qrc_translations basename) set(calamares_i18n_ts_filelist "") foreach(lang ${_qrt_LANGUAGES}) foreach(tlsource ${_qrt_PREFIXES}) - if(EXISTS "${CMAKE_SOURCE_DIR}/{$_qrt_SUBDIRECTORY}/${tlsource}_${lang}.ts") + if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${_qrt_SUBDIRECTORY}/${tlsource}_${lang}.ts") string(APPEND calamares_i18n_qrc_content "${tlsource}_${lang}.qm\n") - list(APPEND calamares_i18n_ts_filelist "${CMAKE_SOURCE_DIR}/${_qrt_SUBDIRECTORY}/${tlsource}_${lang}.ts") + list(APPEND calamares_i18n_ts_filelist "${CMAKE_CURRENT_SOURCE_DIR}/${_qrt_SUBDIRECTORY}/${tlsource}_${lang}.ts") endif() endforeach() endforeach()