bpiwowar/homebrew — comment on commit 4dcb0f3d61f66127c7da7b65d3201aa92a1b22a4
File: Library/Formula/cmake.rb line 10
By bpiwowar:

1) It uses the right version.plist for Xcode 4.3 (/Applications/Xcode.app/Contents/version.plist)
2) It selects the right SDK (now under /Appllications/Xcode.app)

Note that for those that have a previous Xcode installation, they need to change the path of the Xcode installation from the command line:

xcode-select -switch /Applications/Xcode.app/Contents/Developer