Add cmake @ 2.8.12 to prepare fix for patch phase issue.
Fix issue #40746 in the cmake port.