Comment #19 on issue 66 by
[hidden email]: CMake should set up to use
gcc in Lion
http://code.google.com/p/cog/issues/detail?id=66Guys, your problem is that you want to make a single configuration work
everywhere.
A configs serve to be working on a specific platform / version , and
hardcoding is on purpose, that you specify settings for specific
platform/environment.
If you change system/environment, it will not work anymore, and to adapt
config for other system, you either make a subclass, or fresh new class,
where you again hardcode everything.
I prefer to have multiple classes per each platform/version than a single
one with lots of IFs and case statements, because at some point you getting
lost in them and no longer can understand why it fails.