CMakeLists.txt
branchstable-2.0
changeset 1043 44865546c38b
parent 1010 13f24148b2bb
child 1048 22b96d39d1a2
--- a/CMakeLists.txt	Mon Feb 01 03:02:18 2010 -0500
+++ b/CMakeLists.txt	Tue Feb 02 23:40:17 2010 -0500
@@ -346,7 +346,13 @@
 ENDIF(DOXYGEN_FOUND)
 
 IF(UNIX)
-    ADD_CUSTOM_TARGET(dist ./extras/makedist.sh ${PHYSFS_VERSION} COMMENT "Building source tarball")
+    SET(PHYSFS_TARBALL "${CMAKE_CURRENT_SOURCE_DIR}/../physfs-${PHYSFS_VERSION}.tar.gz")
+    ADD_CUSTOM_TARGET(
+        dist
+        hg archive -t tgz "${PHYSFS_TARBALL}"
+        WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
+        COMMENT "Building source tarball '${PHYSFS_TARBALL}'..."
+    )
 ENDIF(UNIX)
 
 MACRO(MESSAGE_BOOL_OPTION _NAME _VALUE)