Commit 17ae4e1b authored by Ben Boeckel's avatar Ben Boeckel
Browse files

FindPNG: only mark used variables as advanced

The `PNG_LIBRARY` variable is an output and not a cache variable.

Fixes some CMP0102 warnings.
parent 36b0cc79
Pipeline #214281 waiting for manual action with stages
in 19 minutes and 16 seconds
......@@ -55,6 +55,7 @@ find_package(ZLIB ${_FIND_ZLIB_ARG})
if(ZLIB_FOUND)
find_path(PNG_PNG_INCLUDE_DIR png.h PATH_SUFFIXES include/libpng)
mark_as_advanced(PNG_PNG_INCLUDE_DIR)
list(APPEND PNG_NAMES png libpng)
unset(PNG_NAMES_DEBUG)
......@@ -158,5 +159,3 @@ include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
find_package_handle_standard_args(PNG
REQUIRED_VARS PNG_LIBRARY PNG_PNG_INCLUDE_DIR
VERSION_VAR PNG_VERSION_STRING)
mark_as_advanced(PNG_PNG_INCLUDE_DIR PNG_LIBRARY )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment