[CMake] find_package question

Alexander Neundorf a.neundorf-work at gmx.net
Fri Apr 10 16:59:11 EDT 2009


On Friday 10 April 2009, Robert Dailey wrote:
> 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.

Use uppercase, it's the majority of modules.

Alex


More information about the CMake mailing list