aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Walch <florian@fwalch.com>2021-02-11 18:37:41 +0100
committerGitHub <noreply@github.com>2021-02-11 18:37:41 +0100
commit393095c1c69de922530871f74869433327b247b6 (patch)
tree797da25d131a41c9e0467141bb05dc08fe1f3479
parent1aec5ba85e97889c792253424c5de9c12ddd6cf4 (diff)
downloadrneovim-393095c1c69de922530871f74869433327b247b6.tar.gz
rneovim-393095c1c69de922530871f74869433327b247b6.tar.bz2
rneovim-393095c1c69de922530871f74869433327b247b6.zip
cmake: Remove duplicate compile flags argument (#13920)
${C_FLAGS_ARRAY} is already part of ${gen_cflags} and does not need to be passed explicitly. Passing it a second time leads to macro redefinition warnings when -D_FORTIFY_SOURCE=2 is given as part of CFLAGS because Neovim enforces -D_FORTIFY_SOURCE=1.
-rw-r--r--src/nvim/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index db77931c16..1a1a178620 100644
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -284,7 +284,7 @@ foreach(sfile ${NVIM_SOURCES}
endif()
add_custom_command(
OUTPUT "${gf_c_h}" "${gf_h_h}"
- COMMAND ${CMAKE_C_COMPILER} ${sfile} ${PREPROC_OUTPUT} ${gen_cflags} ${C_FLAGS_ARRAY}
+ COMMAND ${CMAKE_C_COMPILER} ${sfile} ${PREPROC_OUTPUT} ${gen_cflags}
COMMAND "${LUA_PRG}" "${HEADER_GENERATOR}" "${sfile}" "${gf_c_h}" "${gf_h_h}" "${gf_i}"
DEPENDS ${depends})
list(APPEND NVIM_GENERATED_FOR_SOURCES "${gf_c_h}")