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

Luca Cappa luca.cappa at sequoia.it
Mon Jul 3 06:09:10 EDT 2006


On Mon, 03 Jul 2006 11:26:56 +0200, Jan Woetzel  
<jw at mip.informatik.uni-kiel.de> wrote:

> Luca Cappa wrote:
>
>>
>> FIND_PACKAGE(wxWindows)
>> MESSAGE ("${wxWindows_FOUND}")
>
> The variabel names are case sensituv.
> WXWINDOWS_FOUND

Sorry, but i do not get what case sensitiveness counts here: the docs says:
"<name>_FOUND will be set to indicate whether the package was found.", and  
if
then name is "wxWindows" and case sensitiveness is on, then  
wxWindows_FOUND should be right.

Anyway, i already tryed the following test before:

FIND_PACKAGE(wxWindows)
MESSAGE ("1 ${wxWindows_FOUND}")
MESSAGE ("2 ${WXWINDOWS_FOUND}")

and i got two empty strings.

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

Thanks any further help,
Luca


More information about the CMake mailing list