check if policy exists to support old cmake versions on ubuntu