[CMake] Proper way to write a FIND_PACKAGE

Miguel A. Figueroa-Villanueva miguelf at ieee.org
Wed Jan 7 10:23:55 EST 2009


On Tue, Jan 6, 2009 at 8:39 AM, George Neill wrote:
> All,
>
>  Is this the recommended recipe to write FIND_PACKAGE() cmake scripts?
>
>  http://vtk.org/Wiki/CMake:How_To_Find_Libraries#Writing_find_modules

Well, it seems like good documentation, but make sure to follow the
instructions in:

  http://www.cmake.org/Wiki/CMake:Module_Maintainers

which also includes a link to the readme.txt in the Modules directory:

  http://www.cmake.org/cgi-bin/viewcvs.cgi/Modules/readme.txt?root=CMake&view=markup

that provides the official requirements for all find modules. Note
that many of the Modules bundled with CMake do not follow these
guidelines (due to backwards compatibility issues and other
significant reasons, of course), so be careful which ones you use as
reference.

Hope that helps.

--Miguel


More information about the CMake mailing list