set cmake_policy cmp0022 only if cmake_version >= 2.8.12