From 0145431345058282ec77ffb4240b2f5947a7dc4a Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 30 Jun 2021 23:53:21 -0400 Subject: [PATCH] cmake: fixed "dist" target to use git instead of Mercurial. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b1caf8..6d8776c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -252,12 +252,12 @@ else() endif() if(UNIX) - set(PHYSFS_TARBALL "${CMAKE_CURRENT_SOURCE_DIR}/../physfs-${PHYSFS_VERSION}.tar.bz2") + set(PHYSFS_TARBALL "${CMAKE_CURRENT_SOURCE_DIR}/../physfs-${PHYSFS_VERSION}.tar.gz") set(PHYSFS_TARGETNAME_DIST "dist" CACHE STRING "Name of 'dist' build target") add_custom_target( ${PHYSFS_TARGETNAME_DIST} - hg archive -t tbz2 "${PHYSFS_TARBALL}" + git archive --prefix="physfs-${PHYSFS_VERSION}/" --output="${PHYSFS_TARBALL}" HEAD WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" COMMENT "Building source tarball '${PHYSFS_TARBALL}'..." )