mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2026-10-17 04:52:36 +00:00
Improve package reproducibility
Packages using CMake often use file(GLOB ...) to retrieve a list of source files. As this is based on readdir(), the resulting file list is unsorted. A common use case is to pass this list directly to add_executable or add_library. But as the order is unpredictable, the binaries are not reproducible (because the order in which the objects are linked will vary). See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824263
This commit is contained in:
@@ -44,6 +44,7 @@ include_directories(
|
||||
)
|
||||
|
||||
file(GLOB FRONT_END_CAL_HEADERS "*.h")
|
||||
list(SORT FRONT_END_CAL_HEADERS)
|
||||
add_library(front_end_cal_lib ${FRONT_END_CAL_SOURCES} ${FRONT_END_CAL_HEADERS})
|
||||
source_group(Headers FILES ${FRONT_END_CAL_HEADERS})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user