From c14cc6bf0bdc32a20271c99e1ac03f63205f518c Mon Sep 17 00:00:00 2001 From: ajtribick Date: Tue, 16 Jul 2024 21:40:16 +0200 Subject: [PATCH] CMake: Use result of find_program instead of calling xgettext directly --- cmake/Translations.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Translations.cmake b/cmake/Translations.cmake index 5bb7048df..bdcb841c7 100644 --- a/cmake/Translations.cmake +++ b/cmake/Translations.cmake @@ -44,7 +44,7 @@ macro(add_pot outfiles header pot) add_custom_command( OUTPUT ${pot} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - COMMAND xgettext ${XGETTEXT_OPTIONS} -s -C --omit-header --output="${CMAKE_CURRENT_BINARY_DIR}/pot.temp" ${add_pot_sources} + COMMAND ${GETTEXT_XGETTEXT_EXECUTABLE} ${XGETTEXT_OPTIONS} -s -C --omit-header --output="${CMAKE_CURRENT_BINARY_DIR}/pot.temp" ${add_pot_sources} COMMAND cat ${header} ${CMAKE_CURRENT_BINARY_DIR}/pot.temp > ${pot} DEPENDS ${add_pot_sources} ${header} )