[cmake-developers] export() generates files at configure time

Brad King brad.king at kitware.com
Mon Sep 24 08:38:43 EDT 2012


On 09/23/2012 01:52 PM, Stephen Kelly wrote:
> In investigating moving the linking-relevant API from cmTarget to 
> cmGeneratorTarget, I found that the export() command generates target files 
> at configure time, not at generate time.
> 
> If it generated the files at generate time, I would be able to make progress 
> moving the linking-relevant API.

It would also avoid problems with projects changing target properties
after the export() call and wondering why the target info does not
match.

Be sure to coordinate with Alex and Yury's export-sets-2 topic.

> I can't think of any reason for the fact that it currently generates the 
> files at configure time to be useful. Any objection to changing that?

Not for 2.8.10, please.  The internal cleanup can wait.

How would APPEND mode work?

-Brad



More information about the cmake-developers mailing list