[cmake-developers] Disallowing include() of export() result
Stephen Kelly
steveire at gmail.com
Fri Jun 28 09:06:50 EDT 2013
Brad King wrote:
> What about the APPEND mode of export? Do you plan to try to
> collect all the appended pieces together, all delayed until
> generate time?
Yes, that is the approach I took before, which is still available as
5343c596db797f063300226069f219668d70a399 (Process the export() command at
generate time.) in my clone.
Reading the commit again now, it looks like it would properly handle things
like multiple namespaces:
export(TARGETS foo NAMESPACE NS1 FILE theFile.cmake)
export(TARGETS bar NAMESPACE NS2 APPEND FILE theFile.cmake)
> Perhaps the policy could also disallow the
> APPEND mode altogether. IIRC I've participated in discussion
> in the past about how APPEND is a bad approach anyway.
I've never used it, but then I've never used export() except in unit tests
of it either :). I don't think preserving the APPEND functionality is
expensive.
Thanks,
Steve.
More information about the cmake-developers
mailing list