From 6837f1ccd2e219dd7687353a900af961174a9c32 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 14 May 2018 15:19:26 +0300 Subject: [PATCH] Fix pb: 'locale' directory is not created in source path --- cmake/UseSphinx.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.39.2