cmake upper or lower case ?
Alexander Neundorf
neundorf at kde.org
Thu Jan 12 23:17:12 CET 2006
Hi,
in cmake the commands are case insensitive, this isn't the case for the
special parameters, i.e. "SHARED" has to be written all upper case.
This means all following variants work:
ADD_LIBRARY(kdeui SHARED ${sources} )
I'd use this style, it's the classical cmake-style and doesn't look too bad in
kate with syntax highlighting.
Add_Library(kdeui SHARED ${sources} )
Might be more pleasant to KDE developers, mixture between C-style and
Qt-style. Might look a bit scrambled.
add_library(kdeui SHARED ${sources} )
Looks quite C-ish, but no "SHOUTING". Commands ("add_library") don't stand out
of the rest.
A bunch of cmake modules for detecting and finding programs/libaries/headers
will have to be written. Ideally they should go into cmake cvs. I guess the
cmake developers will only accept modules written in classical cmake
all-upper style. So for these modules the author probably would have to use
this style.
This doesn't mean that the same style *has* to be used in the actual
CMakeLists.txt, where the commands will be called. But IMO having one style
for all cmake files is also something worth considering.
What do you think ?
(I'd like to get some opinions on this before I start finetuning the
autotranslated cmake files manually, because after this it will be harder to
change them all).
Bye
Alex
--
Work: alexander.neundorf at jenoptik.com - http://www.jenoptik-los.de
Home: neundorf at kde.org - http://www.kde.org
alex at neundorf.net - http://www.neundorf.net
More information about the Kde-buildsystem
mailing list