Description: make the build reproducible by sorting the list of files to be linked
Author: Mattia Rizzolo <mattia@debian.org>
Forwarded: no
Last-Update: 2015-12-05

--- a/src/FlightCrew/CMakeLists.txt
+++ b/src/FlightCrew/CMakeLists.txt
@@ -25,6 +25,8 @@
 project( FlightCrew )
 
 file( GLOB_RECURSE SOURCES *.h *.cpp *.xsd *.dtd )
+# sort, so it won't depend on readdir() order and keep the build reproducible
+list( SORT SOURCES )
 
 # The test sources are a part of a different target, so we remove them
 file( GLOB_RECURSE to_remove tests/*.h tests/*.cpp )
