summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-tarball.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-03-12 08:50:06 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-03-12 09:07:59 +0100
commit239a9e4f1cf1ac64aca8a9909b35e0d910eef226 (patch)
treea383fc3c4a27247d52043ae82ba042e61707f91b /cmake/opentrack-tarball.cmake
parent5907d27fbfe98facbb7ce8b8d071658c8a9bed12 (diff)
cmake: remove tarball unused param
Diffstat (limited to 'cmake/opentrack-tarball.cmake')
-rw-r--r--cmake/opentrack-tarball.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/opentrack-tarball.cmake b/cmake/opentrack-tarball.cmake
index 1f292af7..fc8ffde4 100644
--- a/cmake/opentrack-tarball.cmake
+++ b/cmake/opentrack-tarball.cmake
@@ -1,5 +1,6 @@
string(TIMESTAMP filename-date "%Y%m%d")
set(filename-ostype ${CMAKE_SYSTEM_NAME})
+
get_git_head_revision(filename-branch_0 filename-hash_0)
if(filename-hash_0)
string(SUBSTRING "${filename-hash_0}" 0 7 filename-hash)
@@ -21,6 +22,5 @@ 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 sh
- "${CMAKE_SOURCE_DIR}/make-tar.sh" "${CMAKE_INSTALL_PREFIX}"
- "${filename}" "${CMAKE_BINARY_DIR}")
+ "${CMAKE_SOURCE_DIR}/make-tar.sh" "${CMAKE_INSTALL_PREFIX}" "${filename}")
add_custom_target(tarball DEPENDS tarball-real)