aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2016-03-15 14:23:08 -0400
committerJames McCoy <jamessan@jamessan.com>2016-03-15 14:24:38 -0400
commitf3ac99b72d5e73b2f5af23a5257360d2594ed2d4 (patch)
treed38a35449e222dca151918bafef83cbe8aa5a708 /src
parentc94575fded78be1c9fca8b7d193c9bbb30a1dc95 (diff)
downloadrneovim-f3ac99b72d5e73b2f5af23a5257360d2594ed2d4.tar.gz
rneovim-f3ac99b72d5e73b2f5af23a5257360d2594ed2d4.tar.bz2
rneovim-f3ac99b72d5e73b2f5af23a5257360d2594ed2d4.zip
cmake: Create generated files in a consistent order
Diffstat (limited to 'src')
-rw-r--r--src/nvim/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index c54e338fca..966cd9efc6 100644
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -60,6 +60,11 @@ file(GLOB NEOVIM_SOURCES *.c os/*.c api/*.c api/private/*.c msgpack_rpc/*.c
file(GLOB_RECURSE NEOVIM_HEADERS *.h)
file(GLOB UNIT_TEST_FIXTURES ${PROJECT_SOURCE_DIR}/test/unit/fixtures/*.c)
+# Sort file lists to ensure generated files are created in the same order from
+# build to build.
+list(SORT NEOVIM_SOURCES)
+list(SORT NEOVIM_HEADERS)
+
foreach(sfile ${NEOVIM_SOURCES})
get_filename_component(f ${sfile} NAME)
if(${f} MATCHES "^(regexp_nfa.c)$")