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

Miguel A. Figueroa-Villanueva miguelf at ieee.org
Mon Jul 3 06:29:09 EDT 2006


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).

Hope this helps,
--Miguel


More information about the CMake mailing list