From 41f9efb519e60652e503ebdf1edd9ff3d9330de9 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Sun, 15 May 2011 21:22:07 +0000 Subject: [PATCH] Changed update_po_files - target to 'update-po' git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38774 a592a061-630c-0410-9148-cb99ea01b6c8 --- po/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index 37e23e2abb..fcceade5bb 100755 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -139,6 +139,7 @@ foreach(_pofile ${LYX_BASE_PO_FILES}) list(APPEND LYX_PO_FILES ${CMAKE_CURRENT_BINARY_DIR}/${_pofile}) endforeach(_pofile) +set(LYX_UPDATED_PO_FILES) foreach(_pofile ${LYX_BASE_PO_FILES}) add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_pofile}.copied @@ -154,9 +155,8 @@ if(LYX_CPACK OR LYX_INSTALL) endif() GETTEXT_CREATE_TRANSLATIONS(${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.pot ${_addALLOption} ${LYX_PO_FILES}) +# Create a new target to remerge po files # ALL omitted here, to prevent from automatic creation -ADD_CUSTOM_TARGET(update_po_files DEPENDS ${LYX_UPDATED_PO_FILES}) -add_dependencies(update_po_files translations) - -# ADD_POFILES("lyx") +ADD_CUSTOM_TARGET(update-po DEPENDS ${LYX_UPDATED_PO_FILES}) +add_dependencies(update-po translations) -- 2.39.2