Use built-in libpng on macOS

This commit is contained in:
Luke Street 2020-06-25 21:22:59 -04:00
parent 25fabe7ec8
commit 3c461033a9
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
if(NOT WIN32) # remove when specter/freetype is gone
if(NOT WIN32 AND NOT APPLe) # remove WIN32 when specter/freetype is gone
find_library(PNG_LIB NAMES png libpng)
endif()
if(NOT PNG_LIB)
@ -35,4 +35,4 @@ else()
set(PNG_LIBRARIES ${PNG_LIB} CACHE PATH "PNG libraries" FORCE)
find_path(PNG_INCLUDE_DIR png.h)
set(PNG_INCLUDE_DIR ${PNG_INCLUDE_DIR} CACHE PATH "PNG include path" FORCE)
endif()
endif()