[CMake] How to use FindPackageHandleStandardArgs

Marcel Loose loose at astron.nl
Mon May 18 03:51:09 EDT 2009


Hi Alex,

I've created an issue in the bugtracker --
http://www.cmake.org/Bug/view.php?id=9043 -- and added my patch to the
current version. Any feedback is highly appreciated.

Best regards,
Marcel Loose.


-----Original Message-----
From: Alexander Neundorf <a.neundorf-work at gmx.net>
Reply-to: a.neundorf-work at gmx.net
To: cmake at cmake.org
Cc: Marcel Loose <loose at astron.nl>
Subject: Re: [CMake] How to use FindPackageHandleStandardArgs
Date: Sat, 16 May 2009 17:33:58 +0200

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