cmake_policy(SET CMP0020 NEW)
if(POLICY CMP0058)
    cmake_policy(SET CMP0058 OLD)
endif()
if(POLICY CMP0028)
    cmake_policy(SET CMP0028 OLD)
endif()
if(POLICY CMP0042)
    cmake_policy(SET CMP0042 NEW)
endif()