Use cmake_policy(VERSION ...) instead of setting individual policy.