[cmake-developers] Package Config files with COMPONENTS
Brad King
brad.king at kitware.com
Tue Mar 13 17:18:19 EDT 2012
On 3/13/2012 5:10 PM, Alexander Neundorf wrote:
> Regarding the error: I think (didn't check) right now cmake doesn't complain
> if I list a component multiple times:
>
> find_package(Foo COMPONENTS bar blub bar)
I don't think it does.
> If it doesn't, then I'd say
>
> find_package(Foo COMPONENTS bar blub OPTIONAL_COMPONENTS bar)
>
> maybe also should not lead to an error.
It is a new option so we can have new behavior ;)
It can simply be an error to be in BOTH but not to repeat in one
or the other.
-Brad
More information about the cmake-developers
mailing list