[cmake-developers] Generating guards around add_library(... IMPORTED)

Stephen Kelly steveire at gmail.com
Tue Dec 18 04:22:32 EST 2012


Alexander Neundorf wrote:
> With the return() in the FooTargets.cmake file, this included file will
> simply do nothing, and we'll stay with the "old" imported targets and
> their properties.
> But the FooConfig.cmake file which has just been executed may set a bunch
> of variables, which would fit to the targets which now have not been
> imported, and which do not fit to the previuosly imported targets.
> 
> Should the FooConfig.cmake fail in this case ?
> Probably not.

Can you post a code snippet showing the problem?

Thanks,

Steve.





More information about the cmake-developers mailing list