cmake: Update from 2.8.12.2 to 3.0.2

cc @urkud @mornfall