From b1c929e63eaf689895359ce7b5a4b86b46439f11 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 3 Jun 2015 13:10:42 +0200 Subject: cmake: generate more sensible tarball names --- CMakeLists.txt | 5 ++--- 1 file 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}) -- cgit v1.2.3