Set PNG_LIBRARIES with CACHE FORCE

This commit is contained in:
Luke Street 2021-04-18 12:19:27 -04:00
parent f6f0faf68e
commit 7b072bc650
1 changed files with 1 additions and 1 deletions

View File

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