| 1 |
Description: make the build reproducible by sorting the list of files to be linked |
| 2 |
Author: Mattia Rizzolo <[email protected]> |
| 3 |
Forwarded: not-needed |
| 4 |
Last-Update: 2015-12-06 |
| 5 |
|
| 6 |
--- a/src/FlightCrew/CMakeLists.txt |
| 7 |
+++ b/src/FlightCrew/CMakeLists.txt |
| 8 |
@@ -25,6 +25,8 @@ |
| 9 |
project( FlightCrew ) |
| 10 |
|
| 11 |
file( GLOB_RECURSE SOURCES *.h *.cpp *.xsd *.dtd ) |
| 12 |
+# sort, so it won't depend on readdir() order and keep the build reproducible |
| 13 |
+list( SORT SOURCES ) |
| 14 |
|
| 15 |
# The test sources are a part of a different target, so we remove them |
| 16 |
file( GLOB_RECURSE to_remove tests/*.h tests/*.cpp ) |
| 17 |
--- a/src/FlightCrew-gui/CMakeLists.txt |
| 18 |
+++ b/src/FlightCrew-gui/CMakeLists.txt |
| 19 |
@@ -43,6 +43,8 @@ |
| 20 |
############################################################################# |
| 21 |
|
| 22 |
file( GLOB_RECURSE RAW_SOURCES *.h *.cpp ) |
| 23 |
+# sort, so it won't depend on readdir() order and keep the build reproducible |
| 24 |
+list( SORT RAW_SOURCES ) |
| 25 |
|
| 26 |
set( QOBJECT_HEADERS |
| 27 |
MainWindow.h |
| 28 |
--- a/src/zipios/CMakeLists.txt |
| 29 |
+++ b/src/zipios/CMakeLists.txt |
| 30 |
@@ -12,6 +12,8 @@ |
| 31 |
project( zipios ) |
| 32 |
|
| 33 |
file( GLOB_RECURSE SOURCES *.cpp *.h ) |
| 34 |
+# sort, so it won't depend on readdir() order and keep the build reproducible |
| 35 |
+list( SORT SOURCES ) |
| 36 |
|
| 37 |
# We need to pick up the stdafx.h file |
| 38 |
# and the headers for the linked-to libraries |
| 39 |
--- a/src/XercesExtensions/CMakeLists.txt |
| 40 |
+++ b/src/XercesExtensions/CMakeLists.txt |
| 41 |
@@ -12,6 +12,8 @@ |
| 42 |
project( XercesExtensions ) |
| 43 |
|
| 44 |
file( GLOB SOURCES *.cpp *.h ) |
| 45 |
+# sort, so it won't depend on readdir() order and keep the build reproducible |
| 46 |
+list( SORT SOURCES ) |
| 47 |
|
| 48 |
# We need to pick up the stdafx.h file |
| 49 |
# and the headers for the linked-to libraries |