From 834d6661b42a6ea3dfde390e9f8ce7ae8f65a1da Mon Sep 17 00:00:00 2001 From: askmeaboutloom Date: Mon, 7 Aug 2023 10:11:29 +0200 Subject: [PATCH] Properly find lconvert by multiple names It needs a NAMES parameter there. It is now also set to REQUIRED so that it's clear what the error is. --- cmake/DrawpileTranslations.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/DrawpileTranslations.cmake b/cmake/DrawpileTranslations.cmake index 8bee23c80..e36c43547 100644 --- a/cmake/DrawpileTranslations.cmake +++ b/cmake/DrawpileTranslations.cmake @@ -97,7 +97,7 @@ Combines a set of translation files into bundles. function(bundle_translations out_files) cmake_parse_arguments(PARSE_ARGV 1 ARG "" "NAME;OUTPUT_LOCATION" "QT;TARGETS") - find_program(lconvert "lconvert" "lconvert-qt${QT_VERSION_MAJOR}") + find_program(lconvert NAMES "lconvert" "lconvert-qt${QT_VERSION_MAJOR}" REQUIRED) if(NOT ARG_NAME) message(FATAL_ERROR "Missing required NAME for translation bundle")