[CMake] Variable naming when writing FindXXX.cmake files

Judicaël Bedouet j.bedouet at infonie.fr
Thu Nov 13 15:48:51 EST 2008


Thanks.
J. Bedouet

On Thu, Nov 13, 2008 at 9:16 PM, Alexander Neundorf
<a.neundorf-work at gmx.net> wrote:
> 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 ?
>
> Yes.
> Rationale: all "early" modules shipped with cmake do it this way.
>
> Alex
>


More information about the CMake mailing list