[Vm-dev] Re: Issue 66 in cog: CMake should set up to use gcc in Lion

cog at googlecode.com cog at googlecode.com
Thu Sep 6 19:38:57 UTC 2012


Comment #19 on issue 66 by siguc... at gmail.com: CMake should set up to use  
gcc in Lion
http://code.google.com/p/cog/issues/detail?id=66

Guys, 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.



More information about the Vm-dev mailing list