[CMake] Variable naming when writing FindXXX.cmake files

Alexander Neundorf a.neundorf-work at gmx.net
Thu Nov 13 15:16:37 EST 2008

On Thursday 13 November 2008, Judicaël Bedouet wrote:
> Hello,
> I have read the README file provided in directory cmake-2.6/Modules.
> I would just like to clarify a point : the names of the variables must
> always be uppercased even if the name of the package contains
> lowercase and uppercase letters, must'nt they ?
> For example, if I wrote a FindXalanC.cmake, I would export variables
> XALANC_INCLUDE_DIRS, XALANC_LIBRARIES... to respect naming convention
> and not XalanC_INCLUDE_DIRS, XalanC_LIBRARIES. Am I right ?

Rationale: all "early" modules shipped with cmake do it this way.


More information about the CMake mailing list