[CMake] upper/lower case

Andrea Crotti andrea.crotti.0 at gmail.com
Thu Feb 23 12:25:52 EST 2012


On 02/23/2012 04:52 PM, Michael Wild wrote:
> On 02/23/2012 04:08 PM, Andrea Crotti wrote:
>> I really physically suffer using case-insensitive languages,
> Seriously? You must be an annoyingly happy person if that's your biggest
> problem in life! ;-)

It's a quite minor problem, but I think it's not by mistake that the 
only programming language
that I know (quite spread) that is case insensitive is Visual Basic.
It's just wrong imho, because case can really help to spot different 
things, when you leave
the user choose what it wants than everyone that reads the code waste an 
extra amount
of time trying to figure out what the hell that is.

CMake is a small language and it's not a big deal, and probably it can't 
be changed, so it's fine..
> The only occasion where you can hide a CMake-defined variable is inside
> a function(). Otherwise you *overwrite* it's value. And you often want
> to actually do that (e.g. to set the output directories for executables,
> libraries, archives etc.).
>
> HTH
>
> Michael


Well I just meant overwriting something that you're not supposed to, and 
that is used by cmake
internally for some other important things.
But I guess it's not so easy because the names are starting with 
CPACK/CMAKE..


More information about the CMake mailing list