diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-08-06 03:15:09 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-08-06 03:15:09 +0200 |
commit | fb4f389731cf5a26a0a13e4d31bbbb61724989e7 (patch) | |
tree | 9d86dc7ca0e460dc1c6fe25402c5ca2922fceea3 /modules/TDEMacros.cmake | |
parent | 63b5532a298ccf95e310ae853ff53ade506daf7e (diff) | |
download | tde-cmake-fb4f389731cf5a26a0a13e4d31bbbb61724989e7.tar.gz tde-cmake-fb4f389731cf5a26a0a13e4d31bbbb61724989e7.zip |
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>
Diffstat (limited to 'modules/TDEMacros.cmake')
-rw-r--r-- | modules/TDEMacros.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 4554826..471a206 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -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 ) |