[CMake] FIND_PACKAGE REQUIRED - concept chnage?

Brad King brad.king at kitware.com
Tue Jun 20 11:40:03 EDT 2006


Alexander Neundorf wrote:
> Hi,
> 
> Von: Brad King <brad.king at kitware.com>
> 
>> Jan Woetzel wrote:
>>> Jan Woetzel wrote:
>>>
>>>> The REQUIRED flag checking in
>>>> FIND_PACKAGE(Foo REQUIRED)
>>>> is not checking the result of FOO_FOUND anymore.
>> [snip]
>>> In 2.0.6 each find script just had to set _FOUND and the FIND_PACKAGE 
>>> command was handling teh rest automatically.
>> I cannot find any code that would have done this in CMake 2.0.  What 
>> makes you think this worked?
>>
>>> (2) The documentation is only in Modules/readme.txt
>>> but missing in the  FIND:_PACKAGE commadn help.
>> The part about _FIND_REQUIRED and _FIND_QUIETLY is useful only to module 
>> authors so it is in the readme.  Someone using FIND_PACKAGE to find a 
>> package does not care.
> 
> While on this topic, the man page mentions major.minor for the FIND_PACKAGE() command. How is this supposed to work ?
> AFAIK it's not supported by any of the modules coming with cmake.

It is a reserved argument for future use.

-Brad


More information about the CMake mailing list