diff --git a/indra/cmake/PNG.cmake b/indra/cmake/PNG.cmake index 1c52161c06..779beb2944 100644 --- a/indra/cmake/PNG.cmake +++ b/indra/cmake/PNG.cmake @@ -1,14 +1,12 @@ # -*- cmake -*- -# Silence warning about overriding findZLIB.cmake with our own copy. - if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 8 AND ${CMAKE_PATCH_VERSION} GREATER 3) +# Silence warning about overriding findZLIB.cmake with our own copy. cmake_policy(SET CMP0017 OLD) +# Silence warning about using policies to silence warnings about using policies. cmake_policy(SET CMP0011 NEW) endif(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 8 AND ${CMAKE_PATCH_VERSION} GREATER 3) -# Silence warning about using policies to silence warnings about using policies. - include(Prebuilt) set(PNG_FIND_QUIETLY ON)