From 7b072bc65081ee70937ac4429bcfecbe2751341a Mon Sep 17 00:00:00 2001 From: Luke Street Date: Sun, 18 Apr 2021 12:19:27 -0400 Subject: [PATCH] Set PNG_LIBRARIES with CACHE FORCE --- extern/libpng/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extern/libpng/CMakeLists.txt b/extern/libpng/CMakeLists.txt index 970c07948..619565c35 100644 --- a/extern/libpng/CMakeLists.txt +++ b/extern/libpng/CMakeLists.txt @@ -9,7 +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) + set(PNG_LIBRARIES PNG::PNG CACHE STRING "PNG libraries" FORCE) endif () if (NOT PNG_LIBRARIES) message(STATUS "Using HECL's built-in libpng")