I got it to compile - for reference:
comment out the line with the "MATCHES" and a few lines lower the line with #endif. Now it will always use GCC - which is exactly what I want on my mac with xcode 4 installed. Cmake works again.