Restored system libpng

This commit is contained in:
Jack Andersen 2015-11-22 13:50:11 -10:00
parent 2c7df0b4de
commit a443b6df73
1 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ if(NOT WIN32 AND NOT APPLE)
find_library(PNG_LIB png)
endif()
#if(WIN32 OR APPLE OR PNG_LIB STREQUAL PNG_LIB-NOTFOUND)
if(WIN32 OR APPLE OR PNG_LIB STREQUAL PNG_LIB-NOTFOUND)
message(STATUS "Using HECL's built-in libpng")
include_directories(${ZLIB_INCLUDE_DIR})
add_library(png
@ -33,6 +33,6 @@ add_library(png
set(PNG_LIB png CACHE PATH "PNG library" FORCE)
set(LIBPNG_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "PNG include path" FORCE)
#else()
#find_path(LIBPNG_INCLUDE_DIR png.h)
#endif()
else()
find_path(LIBPNG_INCLUDE_DIR png.h)
endif()