Set PNG_LIBRARIES after find_package

This commit is contained in:
Luke Street 2021-04-18 12:01:59 -04:00
parent 49d3feab39
commit f6f0faf68e
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ if (APPLE)
endif()
elseif (NOT WIN32 AND NOT NX) # remove WIN32 when specter/freetype is gone
find_package(PNG REQUIRED)
set(PNG_LIBRARIES PNG::PNG)
endif ()
if (NOT PNG_LIBRARIES)
message(STATUS "Using HECL's built-in libpng")