[CMake] set CPACK_SOURCE_PACKAGE_FILE_NAME when running "make package_source"

Ioan Calin Borcoman iborco at gmail.com
Tue Nov 11 12:01:20 EST 2008


Works great. Good for learning new tricks, too ;-)

Thanx.

On Tue, Nov 11, 2008 at 6:05 PM, Eric NOULARD <eric.noulard at gmail.com> wrote:
> Le Tue, 11 Nov 2008 17:55:03 +0200,
> "Ioan Calin Borcoman" <iborco at gmail.com> a écrit :
>
>> Hi,
>>
>> Is it possible to change the CPACK_SOURCE_PACKAGE_FILE_NAME when I run
>> "make package_source"?
>
> I don't know, but I decide to do it differently.
>
>>
>> I would like to set it to a value like foo-`date +%Y%m%d_%H%M`. Is it
>> possible?
>
> I do use a custom made UsePackageBackup.cmake macro attached to this
> mail for the same need.
>
> If you add:
>
> INCLUDE(UsePackageBackup)
>
> after
> INCLUDE(CPack)
>
> in your main CMakeLists.txt
> then you will have new
>
> package_source_backup
>
> target which will create a dated source package file.
>
> The macro use TGZ generator but you may change this easily from within
> the UsePackageBackup.cmake
>
>
> --
> Erk
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list