diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2022-10-02 19:20:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-02 19:20:40 -0400 |
commit | 56998feebd6f7ec0ab68e44cba3425bf39d448b4 (patch) | |
tree | a292094f71be1f83aab74aaef20914c77ef2ebad /cmake | |
parent | 67e57d21b351a4fe4b32ec76998e45fe00d57186 (diff) | |
parent | fbc66d798ce834c4ba05360c3c07ce7af40d6fc9 (diff) | |
download | rneovim-56998feebd6f7ec0ab68e44cba3425bf39d448b4.tar.gz rneovim-56998feebd6f7ec0ab68e44cba3425bf39d448b4.tar.bz2 rneovim-56998feebd6f7ec0ab68e44cba3425bf39d448b4.zip |
Merge #20154 build: cmake cleanup
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/GetCompileFlags.cmake | 8 | ||||
-rw-r--r-- | cmake/RunMsgfmt.cmake | 9 | ||||
-rw-r--r-- | cmake/RunMsgmerge.cmake | 11 | ||||
-rw-r--r-- | cmake/RunXgettext.cmake | 14 |
4 files changed, 0 insertions, 42 deletions
diff --git a/cmake/GetCompileFlags.cmake b/cmake/GetCompileFlags.cmake index 49b57f6f75..3b027690f8 100644 --- a/cmake/GetCompileFlags.cmake +++ b/cmake/GetCompileFlags.cmake @@ -2,14 +2,6 @@ function(get_compile_flags _compile_flags) # Create template akin to CMAKE_C_COMPILE_OBJECT. set(compile_flags "<CMAKE_C_COMPILER> <CFLAGS> <BUILD_TYPE_CFLAGS> <COMPILE_OPTIONS><COMPILE_DEFINITIONS> <INCLUDES>") - # Get C compiler. - if(CMAKE_C_COMPILER_ARG1) - string(REPLACE - "<CMAKE_C_COMPILER>" - "<CMAKE_C_COMPILER> ${CMAKE_C_COMPILER_ARG1}" - compile_flags - "${compile_flags}") - endif() string(REPLACE "<CMAKE_C_COMPILER>" "${CMAKE_C_COMPILER}" diff --git a/cmake/RunMsgfmt.cmake b/cmake/RunMsgfmt.cmake deleted file mode 100644 index 51606338e0..0000000000 --- a/cmake/RunMsgfmt.cmake +++ /dev/null @@ -1,9 +0,0 @@ -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() diff --git a/cmake/RunMsgmerge.cmake b/cmake/RunMsgmerge.cmake deleted file mode 100644 index 69e5c7276d..0000000000 --- a/cmake/RunMsgmerge.cmake +++ /dev/null @@ -1,11 +0,0 @@ -set(ENV{OLD_PO_FILE_INPUT} yes) -set(ENV{OLD_PO_FILE_OUTPUT} yes) - -execute_process( - COMMAND ${MSGMERGE_PRG} -q --update --backup=none --sort-by-file - ${PO_FILE} ${POT_FILE} - ERROR_VARIABLE err - RESULT_VARIABLE res) -if(NOT res EQUAL 0) - message(FATAL_ERROR "msgmerge failed to run correctly: ${err}") -endif() diff --git a/cmake/RunXgettext.cmake b/cmake/RunXgettext.cmake deleted file mode 100644 index c9328b151d..0000000000 --- a/cmake/RunXgettext.cmake +++ /dev/null @@ -1,14 +0,0 @@ -set(ENV{OLD_PO_FILE_INPUT} yes) -set(ENV{OLD_PO_FILE_OUTPUT} yes) - -list(SORT SOURCES) - -execute_process( - COMMAND ${XGETTEXT_PRG} -o ${POT_FILE} --default-domain=nvim - --add-comments --keyword=_ --keyword=N_ -D ${SEARCH_DIR} - ${SOURCES} - ERROR_VARIABLE err - RESULT_VARIABLE res) -if(NOT res EQUAL 0) - message(FATAL_ERROR "xgettext failed to run correctly: ${err}") -endif() |