Put cmake_minimum_required(VERSION 2.8.6) at the right place.