[CMake] Making timestamped tarball with CPack

Eric Noulard eric.noulard at gmail.com
Tue Feb 20 09:43:47 EST 2007


2007/2/15, Eric Noulard <eric.noulard at gmail.com>:
> > >
> > > mysource-x.y.z-11h45-username.tgz
> > >
> > > Is there a way to build such tarball with CMake/CPack
> > > or should I post a request for feature or a patch?
> >

In order to illustrate what I need and how I've finally
manage to do it I join a cmake script which
add a package_source_backup when included.

One must include CPack first.

INCLUDE(CPack)
INCLUDE(UsePackageBackup)

then

make package_source_backup
will produce a timestamped tar.gz source package file.
Only works on Unix, but should be easy to do on Win32.

-- 
Erk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: UsePackageBackup.cmake
Type: application/octet-stream
Size: 1673 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20070220/60869751/UsePackageBackup.obj


More information about the CMake mailing list