aboutsummaryrefslogtreecommitdiff
path: root/cmake/RunMsgfmt.cmake
diff options
context:
space:
mode:
authorJohn Szakmeister <john@szakmeister.net>2014-07-17 07:16:56 -0400
committerJohn Szakmeister <john@szakmeister.net>2014-07-17 07:17:35 -0400
commite057676a89fb692f2569d7e586ea26d323428de4 (patch)
tree24c8149b07972d06a987bab9807978fc26045c55 /cmake/RunMsgfmt.cmake
parentc261b351ed40365a88d78f23c609a290ac0c8456 (diff)
parent92558ee3a4ad5572e0d848a098593381f7941ef5 (diff)
downloadrneovim-e057676a89fb692f2569d7e586ea26d323428de4.tar.gz
rneovim-e057676a89fb692f2569d7e586ea26d323428de4.tar.bz2
rneovim-e057676a89fb692f2569d7e586ea26d323428de4.zip
Merge #928 'Move po gen to cmake'
This includes the necessary fixes to sv.po to make the build work again.
Diffstat (limited to 'cmake/RunMsgfmt.cmake')
-rw-r--r--cmake/RunMsgfmt.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/RunMsgfmt.cmake b/cmake/RunMsgfmt.cmake
new file mode 100644
index 0000000000..51606338e0
--- /dev/null
+++ b/cmake/RunMsgfmt.cmake
@@ -0,0 +1,9 @@
+set(ENV{OLD_PO_FILE_INPUT} yes)
+
+execute_process(
+ COMMAND ${MSGFMT_PRG} -o ${MO_FILE} ${PO_FILE}
+ ERROR_VARIABLE err
+ RESULT_VARIABLE res)
+if(NOT res EQUAL 0)
+ message(FATAL_ERROR "msgfmt failed to run correctly: ${err}")
+endif()