[CMake] doesnt FIND_PACKAGE set to 1 <name>_FOUND when successfull?

Luca Cappa luca.cappa at sequoia.it
Mon Jul 3 06:56:07 EDT 2006


On Mon, 03 Jul 2006 12:29:09 +0200, Miguel A. Figueroa-Villanueva  
<miguelf at ieee.org> wrote:

> On 7/3/06, Luca Cappa <luca.cappa at sequoia.it> wrote:
>> Maybe the variable <name>_FOUND is required to be defined by the .cmake
>> file? in that
>> case it is my fault, since i wrote that package finder :)
>
> That is the case. The Find*.cmake module must implement some standard
> behaviour, which is assumed by the help statement for the FIND_PACKAGE
> command. There is a readme.txt in the modules directory, which has
> some information about how developers should implement the Find*.cmake
> modules.
>
> Note that it is not only the *_FOUND variable, but the module should
> also behave correctly, when invoked through FIND_PACKAGE(... QUIET) or
>  FIND_PACKAGE(... REQUIRED).
>

Ok, i was almost sure that clearly was my fault, but did not wanted to  
admint it :)
Thanks for the information,
Luca


More information about the CMake mailing list