mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +00:00
Avoid modification of po-files in source tree
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28889 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
82e5e90864
commit
f63af03846
@ -79,7 +79,16 @@ ADD_CUSTOM_COMMAND(
|
||||
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.fmt.pot" ${_potfiles_dep}
|
||||
)
|
||||
|
||||
file(GLOB LYX_PO_FILES ${TOP_SRC_DIR}/po/*.po)
|
||||
#
|
||||
# We have to copy the po-files first,
|
||||
# otherwise they would be modified (inside the macro GETTEXT_CREATE_TRANSLATIONS())
|
||||
# This makes the "svn up" on po-files work again
|
||||
file(GLOB LYX_BASE_PO_FILES RELATIVE ${TOP_SRC_DIR}/po ${TOP_SRC_DIR}/po/*.po)
|
||||
set(LYX_PO_FILES)
|
||||
foreach(_pofile ${LYX_BASE_PO_FILES})
|
||||
configure_file(${TOP_SRC_DIR}/po/${_pofile} ${CMAKE_CURRENT_BINARY_DIR}/${_pofile} COPYONLY)
|
||||
list(APPEND LYX_PO_FILES ${CMAKE_CURRENT_BINARY_DIR}/${_pofile})
|
||||
endforeach(_pofile)
|
||||
|
||||
GETTEXT_CREATE_TRANSLATIONS(${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.pot ALL ${LYX_PO_FILES})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user