[CMake] Automated CPACK_STRIP_FILES

Mathieu Malaterre mathieu.malaterre at gmail.com
Thu Oct 2 04:31:29 EDT 2008


On Thu, Oct 2, 2008 at 1:49 AM, Alexander Neundorf
<a.neundorf-work at gmx.net> wrote:
> On Friday 26 September 2008, Mathieu Malaterre wrote:
>> 'lo,
>>
>>    did anyone wrote a small cmake script to harvest all found
>> executables and pass that list to CPACK_STRIP_FILES ?
>
> You don't have to.
> With cmake 2.6, set CPACK_STRIP_FILES to TRUE and it will do that
> automatically.

And it is backward compatible :)

That's much nicer, thanks.

http://www.vtk.org/Wiki/CMake:CPackConfiguration

...
List of files to be stripped. Starting with CMake 2.6.0
CPACK_STRIP_FILES will be a boolean variable which enables stripping
of all files (a list of files evaluates to TRUE in CMake, so this
change is compatible).
...

sorry for the noise,
-- 
Mathieu


More information about the CMake mailing list