Merged 1042:dc9291957a5a from default branch: make dist fix.

This commit is contained in:
Ryan C. Gordon 2010-02-02 23:40:17 -05:00
parent 7aaa4dc6bf
commit 2276520de9
1 changed files with 7 additions and 1 deletions

View File

@ -346,7 +346,13 @@ ELSE(DOXYGEN_FOUND)
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)