Apply policy change for newer cmake version only