summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-18 09:44:47 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-10-18 10:05:52 +0200
commitf1e71e68512bc58f3f41ba4566f9d1574773d742 (patch)
treeda6e7c1f8769354678a75781be950d5f910b9c08 /CMakeLists.txt
parent14d27dd0998b18a2eb13d30c8680701a9b619a08 (diff)
cmake: regen before making tarball
Updates timestamp as it should.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 482bdb6c..78d9cab8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -216,10 +216,11 @@ set(filename_0 "${OPENTRACK_COMMIT}")
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}" "${CMAKE_BINARY_DIR}")
-add_custom_target(tarball DEPENDS "${filename}")
+add_custom_target(tarball-real)
+add_custom_target(tarball-real2)
+add_custom_command(TARGET tarball-real COMMAND cmake -P ${CMAKE_SOURCE_DIR}/cmake/tarball.cmake)
+add_custom_command(TARGET tarball-real2 COMMAND /usr/bin/env sh "${CMAKE_SOURCE_DIR}/make-tar.sh" "${CMAKE_INSTALL_PREFIX}" "${filename}" "${CMAKE_BINARY_DIR}")
+add_custom_target(tarball DEPENDS tarball-real)
opentrack_module(opentrack-api opentrack)
opentrack_qt(opentrack-api)