[CMake] How to use FindPackageHandleStandardArgs

Alexander Neundorf a.neundorf-work at gmx.net
Sat May 16 11:33:58 EDT 2009


On Friday 15 May 2009, Marcel Loose wrote:
> Hi all,
>
> On second thought, I think the interface of
> find_package_handle_standard_args() is a bit counter-intuitive. Why
> should it matter to the (ignorant) user that list-variables are treated
> different from "ordinary" values. That doesn't make sense IMHO.
>
> I've taken the time to rewrite find_package_handle_standard_args() in
> such a way that you can now supply any variable as argument to be
> checked. If the argument is a list, each member in the list will be
> tested. It makes the function even shorter, because there's no need to
> do a separate test on _VAR1 anymore. I think this change won't break any
> existing code. Any comments are appreciated.
>
> I've attached the new function. Or would it be better to post a patch
> file? Or should I open an issue for this and upload the file there?

Yes, please.

Alex


More information about the CMake mailing list