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")