macro(SET_POLICIES)
  if(POLICY CMP0020)
    cmake_policy(SET CMP0020 NEW)
  endif()
  if(POLICY CMP0042)
    cmake_policy(SET CMP0042 NEW)
  endif()
  if(POLICY CMP0043)
    cmake_policy(SET CMP0043 NEW)
  endif()
  if(POLICY CMP0046)
    cmake_policy(SET CMP0046 NEW)
  endif()
  if(POLICY CMP0048)
    cmake_policy(SET CMP0048 NEW)
  endif()
  if(POLICY CMP0054)
    cmake_policy(SET CMP0054 NEW)
  endif()
  if(POLICY CMP0054)
    cmake_policy(SET CMP0054 NEW)
  endif()
  if(POLICY CMP0071)
    cmake_policy(SET CMP0071 NEW)
  endif()
endmacro()
