Commit 37dc2645 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

cmake: More po generation fixes.

parent 889cd240
...@@ -6,13 +6,13 @@ ...@@ -6,13 +6,13 @@
#FIXME: detection ? #FIXME: detection ?
set( GMSGFMT msgfmt ) find_program( GMSGFMT msgfmt )
set( MSGFMT msgfmt ) find_program( MSGFMT msgfmt )
set( XGETTEXT xgettext ) find_program( XGETTEXT xgettext )
set( MSGMERGE_UPDATE msgmerge --update ) find_program( MSGMERGE_UPDATE msgmerge --update )
set( MSGINIT msginit ) find_program( MSGINIT msginit )
set( MSGCONV msgconv ) find_program( MSGCONV msgconv )
set( MSGFILTER msgfilter ) find_program( MSGFILTER msgfilter )
set( POFILES set( POFILES
af af
...@@ -67,11 +67,11 @@ set( POFILES ...@@ -67,11 +67,11 @@ set( POFILES
) )
FOREACH( pofile ${POFILES} ) FOREACH( pofile ${POFILES} )
set( po-target ${po-target} ${pofile}.gmo ) set( po-target ${po-target} ${CMAKE_CURRENT_BINARY_DIR}/${pofile}.gmo )
ENDFOREACH( pofile) ENDFOREACH( pofile)
ADD_CUSTOM_TARGET( all-po ALL ADD_CUSTOM_TARGET( all-po ALL
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${po-target} DEPENDS ${po-target}
) )
foreach( pofile ${POFILES} ) foreach( pofile ${POFILES} )
...@@ -79,6 +79,6 @@ foreach( pofile ${POFILES} ) ...@@ -79,6 +79,6 @@ foreach( pofile ${POFILES} )
COMMAND rm -f ${CMAKE_CURRENT_BINARY_DIR}/${pofile}.gmo COMMAND rm -f ${CMAKE_CURRENT_BINARY_DIR}/${pofile}.gmo
COMMAND ${GMSGFMT} -c --statistics -o ${CMAKE_CURRENT_BINARY_DIR}/t-${pofile}.gmo ${CMAKE_CURRENT_SOURCE_DIR}/${pofile}.po COMMAND ${GMSGFMT} -c --statistics -o ${CMAKE_CURRENT_BINARY_DIR}/t-${pofile}.gmo ${CMAKE_CURRENT_SOURCE_DIR}/${pofile}.po
COMMAND mv ${CMAKE_CURRENT_BINARY_DIR}/t-${pofile}.gmo ${CMAKE_CURRENT_BINARY_DIR}/${pofile}.gmo COMMAND mv ${CMAKE_CURRENT_BINARY_DIR}/t-${pofile}.gmo ${CMAKE_CURRENT_BINARY_DIR}/${pofile}.gmo
DEPENDS ${pofile}.po DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${pofile}.po
) )
endforeach( pofile ) endforeach( pofile )
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment