[CMake] find_package question

Robert Dailey rcdailey at gmail.com
Thu Apr 9 21:55:53 EDT 2009


I'm reading the guidelines for find package modules here:
http://www.cmake.org/cgi-bin/viewcvs.cgi/Modules/readme.txt?root=CMake&view=markup

No where in here do I see any mention of "uppercase" variable names. For
example, if my find package is:

FindFoo.cmake

My return variables are:

Foo_LIBRARIES
Foo_INCLUDE_DIRS
Foo_FOUND

However, FindPackageHandleStandardArgs.cmake makes the FOUND variable all
upper case, like so:

FOO_FOUND

What am I supposed to do? Uppercase or not? I notice that some pre-packaged
find modules (like boost) do not use uppercase names, while others (like
OpenGL) do use uppercase.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090409/56777f05/attachment.htm>


More information about the CMake mailing list