diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-06-03 13:10:42 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-06-03 13:10:42 +0200 |
commit | b1c929e63eaf689895359ce7b5a4b86b46439f11 (patch) | |
tree | 5dd5a90e06bceb754289711ce1dd924cc1b4315d | |
parent | c940bf21c74ea8bd4d3dfe10771536d93479d3aa (diff) |
cmake: generate more sensible tarball names
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e96443cf..55386ede 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -152,9 +152,8 @@ if(filename-hash_0) endif() string(REPLACE "refs/heads/" "" filename-branch_1 "${filename-branch_0}") string(REPLACE "/" "-" filename-branch "${filename-branch_1}") -set(filename_0 opentrack-${filename-ostype}-${filename-branch}-${filename-date}-${filename-hash}) -string(TOLOWER "${filename_0}" filename_1) -set(filename "${CMAKE_BINARY_DIR}/${filename_1}.zip") +set(filename_0 "${OPENTRACK__COMMIT}") +set(filename "${CMAKE_BINARY_DIR}/${filename_0}.zip") add_custom_command(OUTPUT ${filename} COMMAND env sh "${CMAKE_SOURCE_DIR}/make-tar.sh" "${CMAKE_INSTALL_PREFIX}" "${filename}") add_custom_target(tarball DEPENDS ${filename}) |