mirror of https://github.com/AxioDL/metaforce.git
Fix libPNG
This commit is contained in:
parent
de5b1a2fe4
commit
b817b2624b
|
@ -27,9 +27,10 @@ add_library(png
|
||||||
pngwtran.c
|
pngwtran.c
|
||||||
pngwutil.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)
|
set(PNG_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "PNG include path" FORCE)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
find_path(PNG_INCLUDE_DIR png.h)
|
find_path(PNG_INCLUDE_DIR png.h)
|
||||||
|
set(PNG_LIBRARIES ${PNG_LIBRARIES} CACHE PATH "PNG library" FORCE)
|
||||||
endif()
|
endif()
|
Loading…
Reference in New Issue