mirror of https://github.com/AxioDL/metaforce.git
Use built-in libpng on macOS
This commit is contained in:
parent
25fabe7ec8
commit
3c461033a9
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue