summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-17 11:37:18 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-10-17 11:41:36 +0200
commit507ad23581797779f182adc116aae5556d2d2d78 (patch)
tree2630b8e535c68670b36b654d2e817991abfa535f /CMakeLists.txt
parent96c2536411dea74dc8e60883bbd31201c18a4f17 (diff)
cmake: add tarball timestamp so it gets rebuilt
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b9925b4f..197bad8b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -213,12 +213,12 @@ endif()
string(REPLACE "refs/heads/" "" filename-branch_1 "${filename-branch_0}")
string(REPLACE "/" "-" filename-branch "${filename-branch_1}")
set(filename_0 "${OPENTRACK_COMMIT}")
-set(filename "${CMAKE_BINARY_DIR}/${filename_0}.zip")
+string(TIMESTAMP filename_1 "%Y%m%d%H%M%S")
+set(filename "${CMAKE_BINARY_DIR}/${filename_0}-${filename_1}.zip")
add_custom_command(OUTPUT ${filename} COMMAND /usr/bin/env sh "${CMAKE_SOURCE_DIR}/make-tar.sh" "${CMAKE_INSTALL_PREFIX}" "${filename}")
add_custom_target(tarball DEPENDS "${filename}")
-
opentrack_module(opentrack-api opentrack)
opentrack_qt(opentrack-api)
add_library(opentrack-api STATIC ${opentrack-api-all})