File fcitx-table-other-0.2.3-make-directory-before-output.patch of Package fcitx-table-other

Index: fcitx-table-other-0.2.3/tables/CMakeLists.txt
===================================================================
--- fcitx-table-other-0.2.3.orig/tables/CMakeLists.txt
+++ fcitx-table-other-0.2.3/tables/CMakeLists.txt
@@ -50,8 +50,10 @@ set(CONF_FILE)
 foreach(table ${TABLE_NAMES})
   fcitx_translate_add_apply_source("${table}.conf.in"
     "${CMAKE_CURRENT_BINARY_DIR}/${table}.conf")
+  get_filename_component(out_dir "${CMAKE_CURRENT_BINARY_DIR}/${table}.mb" PATH)
   add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${table}.mb"
     DEPENDS "${table}.txt" "${TXT2MB}"
+    COMMAND "${CMAKE_COMMAND}" -E make_directory "${out_dir}"
     COMMAND "${TXT2MB}" ARGS "${CMAKE_CURRENT_SOURCE_DIR}/${table}.txt"
     "${CMAKE_CURRENT_BINARY_DIR}/${table}.mb")
   set(MB_FILE ${MB_FILE} "${CMAKE_CURRENT_BINARY_DIR}/${table}.mb")