Fix libPNG

This commit is contained in:
Phillip Stephens 2020-06-12 05:40:43 -07:00
parent de5b1a2fe4
commit b817b2624b
1 changed files with 2 additions and 1 deletions

View File

@ -27,9 +27,10 @@ add_library(png
pngwtran.c
pngwutil.c)
set(PNG_LIB png CACHE PATH "PNG library" FORCE)
set(PNG_LIBRARIES png CACHE PATH "PNG library" FORCE)
set(PNG_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "PNG include path" FORCE)
else()
find_path(PNG_INCLUDE_DIR png.h)
set(PNG_LIBRARIES ${PNG_LIBRARIES} CACHE PATH "PNG library" FORCE)
endif()