From: A. Maitland Bottoms Date: Sat, 2 Jul 2016 20:30:47 +0000 (+0000) Subject: sort-cmake-glob-lists X-Git-Tag: archive/raspbian/1.3-2+rpi1~1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f57bb0d157e988116810f7fa8573e4c39cd96c85;p=volk.git sort-cmake-glob-lists Subject sort cmake glob lists File lists are generated in a CMakeLists.txt file with file(GLOB ...), which varies with the readdir() order. Sorting the lists should help make reproducinble builds. Gbp-Pq: Name sort-cmake-glob-lists --- diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 5a5e62d..6e2309c 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -328,8 +328,11 @@ message(STATUS "Available machines: ${available_machines}") #dependencies are all python, xml, and header implementation files file(GLOB xml_files ${PROJECT_SOURCE_DIR}/gen/*.xml) +list(SORT xml_files) file(GLOB py_files ${PROJECT_SOURCE_DIR}/gen/*.py) +list(SORT py_files) file(GLOB h_files ${PROJECT_SOURCE_DIR}/kernels/volk/*.h) +list(SORT h_files) macro(gen_template tmpl output) list(APPEND volk_gen_sources ${output})