[cmake-developers] New property scope for install()ed files?

Nils Gladitz nilsgladitz at gmail.com
Fri May 16 16:56:04 EDT 2014


On 16.05.2014 22:32, Brad King wrote:
> After thinking about this more I realized that we may need to specify 
> packaging properties for files installed by install(TARGETS) too. The 
> actual set of destination paths may not be known at configuration 
> time. Therefore such properties would have to be set as part of the 
> install() command call. Perhaps instead we should go ahead and create 
> an "INSTALL" property type. INSTALL properties meant for CPack can 
> start in the prefix "CPACK_". 

Thanks.

I'll have to think about that but here is what I've got for now:
     https://github.com/ngladitz/cmake/tree/cpack-properties

It implements the two properties required for
     http://public.kitware.com/Bug/view.php?id=14911

I write the properties file at generation time rather than configuration 
time ... perhaps generator expressions could be allowed for keys?

If they were set by install() itself there would need to be some sort of 
disambiguation in case there are multiple files being installed (like 
there already is for DESTINATION).

Nils




More information about the cmake-developers mailing list