RunXgettext.cmake 384 B

123456789101112131415
  1. set(ENV{OLD_PO_FILE_INPUT} yes)
  2. set(ENV{OLD_PO_FILE_OUTPUT} yes)
  3. list(SORT SOURCES)
  4. execute_process(
  5. COMMAND ${XGETTEXT_PRG} -o ${POT_FILE} --default-domain=nvim
  6. --add-comments --keyword=_ --keyword=N_ -D ${SEARCH_DIR}
  7. ${SOURCES}
  8. ERROR_VARIABLE err
  9. RESULT_VARIABLE res)
  10. if(NOT res EQUAL 0)
  11. message(FATAL_ERROR "xgettext failed to run correctly: ${err}")
  12. endif()