mirror of https://github.com/AxioDL/metaforce.git
Correct find_package libpng -> PNG
This commit is contained in:
parent
7d6e73db2c
commit
27a9bd3d59
|
@ -1 +1 @@
|
|||
Subproject commit 6c52de489f7c2e78fbbd8ea15287f2783c9d5879
|
||||
Subproject commit dec27c05ed656b37ef75744688529b67c6f60dcc
|
|
@ -1,8 +1,5 @@
|
|||
if(NOT WIN32 AND NOT APPLE)
|
||||
find_library(PNG_LIB png)
|
||||
endif()
|
||||
|
||||
if(WIN32 OR APPLE OR PNG_LIB STREQUAL PNG_LIB-NOTFOUND)
|
||||
find_package(PNG)
|
||||
if(NOT PNG_FOUND)
|
||||
message(STATUS "Using HECL's built-in libpng")
|
||||
include_directories(${ZLIB_INCLUDE_DIR})
|
||||
add_library(png
|
||||
|
@ -31,8 +28,8 @@ add_library(png
|
|||
pngwutil.c)
|
||||
|
||||
set(PNG_LIB png CACHE PATH "PNG library" FORCE)
|
||||
set(LIBPNG_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()
|
||||
find_path(LIBPNG_INCLUDE_DIR png.h)
|
||||
endif()
|
||||
find_path(PNG_INCLUDE_DIR png.h)
|
||||
endif()
|
Loading…
Reference in New Issue