[CMake] Variable naming when writing FindXXX.cmake files

Judicaël Bedouet j.bedouet at infonie.fr
Thu Nov 13 04:43:20 EST 2008


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 ?

Thanks,

J. Bedouet


More information about the CMake mailing list