[CMake] Component support in FindPackageHandleStandardArgs

Johannes Zarl Johannes.Zarl at jku.at
Wed Jan 19 06:52:28 EST 2011



On 01/18/2011 at 20:54, Alexander Neundorf <a.neundorf-work at gmx.net> wrote: 
> On Monday 13 December 2010, Johannes Zarl wrote:
>> The three FPHSA calls from above could be written using this syntax as:
>> FPHSA(XXX REQUIRED_VARS XXX_LIBRARY XXX_INCLUDE_DIR
>>   COMPONENTS
>>     COMPONENT YYY XXX_YYY_LIBRARY XXX_YYY_INCLUDE_DIR
>>     COMPONENT ZZZ XXX_ZZZ_LIBRARY XXX_ZZZ_INCLUDE_DIR )
>>
>> The attached patch implements this syntax for FPHSA.
>>
>> Is this a desirable extension to FPHSA?
> 
> Can you please add that to http://public.kitware.com/Bug/view.php?id=5920

Done.

> 
> I'm not sure the current version of CMakeParseArguments.cmake supports 
> listing the same keyword multiple times.

That's true. In fact, the signature uses a single multiVAlueArg "COMPONENTS"
and then evaluates the "COMPONENT ..." entries using a loop.

Cheers,
  Johannes


-- 
Johannes Zarl
Virtual Reality Services

Johannes Kepler University
Informationsmanagement

Altenbergerstrasze 69
4040 Linz, Austria
Phone: +43 732 2468-8321
johannes.zarl at jku.at
http://vrc.zid.jku.at












More information about the CMake mailing list