[CMake] CPack specify filename

NoRulez norulez at me.com
Fri Jun 3 04:38:52 EDT 2011


Is this the only way? Because i would like to have only one CTestScript.cmake file which came from the build server.

Am 01.06.2011 um 23:48 schrieb Clinton Stimpson <clinton at elemtech.com>:

> On Wednesday, June 01, 2011 02:58:22 pm NoRulez wrote:
>> Hi,
>> 
>> if I use PackageMaker, DragNDrop, Bundle, OSXX11 then the problem is that
>> all 4 filenames are equal (e.g. "Project.dmg"). The problem now is, that
>> each cpack routine overwrites the package.
>> 
>> Is it possible to avoid this behavior with a custom filename per Generator?
>> 
>> E.g.: Project_OSXX11.dmg, Project_DragNDrop.dmg, ...
>> 
>> Thanks in advance
> 
> <http://www.vtk.org/Wiki/CMake:CPackPackageGenerators#Overall_usage_.28common_to_all_generators.29>
> 
> You can set CPACK_PROJECT_CONFIG_FILE and in that file include per-generator 
> code.
> 
> -- 
> Clinton Stimpson
> Elemental Technologies, Inc
> Computational Simulation Software, LLC
> www.csimsoft.com
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list