From: eap Date: Mon, 14 May 2018 12:19:26 +0000 (+0300) Subject: Fix pb: 'locale' directory is not created in source path X-Git-Tag: V8_5_0rc2^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6837f1ccd2e219dd7687353a900af961174a9c32;p=tools%2Fconfiguration.git Fix pb: 'locale' directory is not created in source path --- diff --git a/cmake/UseSphinx.cmake b/cmake/UseSphinx.cmake index 4372e42..1ee25d1 100644 --- a/cmake/UseSphinx.cmake +++ b/cmake/UseSphinx.cmake @@ -41,8 +41,8 @@ endfunction() # ADD_MULTI_LANG_DOCUMENTATION is a macro which adds sphinx multi-language # documentation. # -# USAGE: SALOME_CONFIGURE_FILE(TARGET MODULE -# LANGUAGES ) +# USAGE: ADD_MULTI_LANG_DOCUMENTATION(TARGET MODULE +# LANGUAGES ) # # ARGUMENTS: # TARGET_NAME : IN : target name for the documentation @@ -133,6 +133,8 @@ MACRO(ADD_MULTI_LANG_DOCUMENTATION) # 8. Update PO files FOREACH(lang ${MULTI_LANG_LANGUAGES}) FILE(GLOB _pfiles ${CMAKE_CURRENT_BINARY_DIR}/locale/${lang}/LC_MESSAGES/*.po) + ADD_CUSTOM_COMMAND(TARGET ${MULTI_LANG_TARGET_NAME} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_SOURCE_DIR}/locale/${lang}/LC_MESSAGES) FOREACH(pofile ${_pfiles}) GET_FILENAME_COMPONENT(fn_wo_path ${pofile} NAME) ADD_CUSTOM_COMMAND(TARGET ${MULTI_LANG_TARGET_NAME} POST_BUILD