Browse Source

tde_create_tarball: SOURCEDIR can be specified as relative.

If the list of files is obtained internally in a macro,
it will be sorted. This prevents unexpected order of files
- improves certainty for reproducible builds.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/59/head
Slávek Banko 2 months ago
parent
commit
fb4f389731
No known key found for this signature in database GPG Key ID: 608F5293A04BE668
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      modules/TDEMacros.cmake

+ 5
- 0
modules/TDEMacros.cmake View File

@@ -2263,8 +2263,13 @@ macro( tde_create_tarball )
tde_message_fatal( "Target tarball name not specified." )
endif( )

if( NOT IS_ABSOLUTE ${_sourcedir} )
set( _sourcedir "${CMAKE_CURRENT_SOURCE_DIR}/${_sourcedir}" )
endif( )

if( NOT _files )
file( GLOB_RECURSE _files RELATIVE ${_sourcedir} "${_sourcedir}/*" )
list( SORT _files )
endif( )

unset( _files_deps )


Loading…
Cancel
Save