summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 301d91d..617c113 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -153,5 +153,6 @@ endif()
## Generate a release tarball from the git sources
#
add_custom_target(dist
- COMMAND git-archive-all ${CMAKE_CURRENT_BINARY_DIR}/${ARCHIVE_NAME}.tar.xz
+ COMMAND git archive --prefix=${ARCHIVE_NAME}/ --format=tar HEAD
+ | xz > ${CMAKE_CURRENT_BINARY_DIR}/${ARCHIVE_NAME}.tar.xz
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})