Setting Cmake Policy CMP0022 .