[cmake-developers] Setting ExactCase_FOUND in FPHSA
Alexander Neundorf
neundorf at kde.org
Tue Feb 19 15:09:24 EST 2013
On Monday 18 February 2013, Stephen Kelly wrote:
> Alexander Neundorf wrote:
> > I mean, even if FPHSA would set ExactCase_FOUND always by default, there
> > still would be no guarantee at all that after a
> > find_package(Foo)
> > Foo_FOUND will be set, because as a user of that module I don't know
> > whether it uses FPHSA or not. I have to read the documentation.
>
> If you want to set the text on a text-related Qt widget, there's no
> guarantee that the method you want is setText. It usually deliberately is,
> but you have to read the documentation to be sure :).
>
> Anyway, I don't agree with your conclusion,
I don't see where automatically setting ExactCase_FOUND improves over the
current situation.
Right now, as a user of a Find-module you can only rely on the variables as
documented for each Find-module.
With automatic setting, you still can only rely on the documented variables,
since it is only a (to the user unknown) subset of Find-modules which
additionally sets the undocumented ExactCase_FOUND variable.
Would
find_package(BZip2)
set BZip2_FOUND with the patch ?
Nobody can know without looking at the code of FindBZip2.cmake
Alex
More information about the cmake-developers
mailing list