Skip to content
This repository was archived by the owner on Jul 29, 2021. It is now read-only.

Commit 0145431

Browse files
committed
cmake: fixed "dist" target to use git instead of Mercurial.
1 parent b7410d6 commit 0145431

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,12 @@ else()
252252
endif()
253253

254254
if(UNIX)
255-
set(PHYSFS_TARBALL "${CMAKE_CURRENT_SOURCE_DIR}/../physfs-${PHYSFS_VERSION}.tar.bz2")
255+
set(PHYSFS_TARBALL "${CMAKE_CURRENT_SOURCE_DIR}/../physfs-${PHYSFS_VERSION}.tar.gz")
256256

257257
set(PHYSFS_TARGETNAME_DIST "dist" CACHE STRING "Name of 'dist' build target")
258258
add_custom_target(
259259
${PHYSFS_TARGETNAME_DIST}
260-
hg archive -t tbz2 "${PHYSFS_TARBALL}"
260+
git archive --prefix="physfs-${PHYSFS_VERSION}/" --output="${PHYSFS_TARBALL}" HEAD
261261
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
262262
COMMENT "Building source tarball '${PHYSFS_TARBALL}'..."
263263
)

0 commit comments

Comments
 (0)