[CMake] FindXXX capitalization recommendation for new modules

David Cole david.cole at kitware.com
Fri Aug 31 11:59:46 EDT 2012


The best thing is to not write new find modules...

Rather, have the project itself provide a project/package config file
that CMake's find_package can find without a find module.

Do you have to write a new find module? What package is it for?


On Fri, Aug 31, 2012 at 11:49 AM, Daniele E. Domenichelli
<daniele.domenichelli at gmail.com> wrote:
> Hello,
>
> I tried to find this out, but I cannot find a clear answer to this question:
> what are the capitalization recommendation when writing a _new_ module?
>
> Let's say the library name is "Xxxxx"
>
> The module file should be FindXxxxx.cmake or FindXXXXX.cmake?
> The variables
> - Xxxxx_FOUND or XXXXX_FOUND?
> - Xxxxx_INCLUDE_DIRS or XXXXX_INCLUDE_DIRS?
>
>
> Thanks
>
>
> Regards,
>  Daniele
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list