mirror of
https://github.com/aseprite/aseprite.git
synced 2024-09-03 21:49:03 +00:00
Don't lost png include dirs so webp's imagedec doesn't fail
This commit is contained in:
parent
d9462e912c
commit
b7aa2923f6
@ -216,11 +216,11 @@ else()
|
|||||||
set(PNG_FOUND ON)
|
set(PNG_FOUND ON)
|
||||||
set(PNG_LIBRARY png_static)
|
set(PNG_LIBRARY png_static)
|
||||||
set(PNG_LIBRARIES ${PNG_LIBRARY})
|
set(PNG_LIBRARIES ${PNG_LIBRARY})
|
||||||
set(PNG_PNG_INCLUDE_DIR ${LIBPNG_DIR})
|
|
||||||
set(PNG_INCLUDE_DIRS
|
set(PNG_INCLUDE_DIRS
|
||||||
${LIBPNG_DIR}
|
${LIBPNG_DIR}
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/third_party/libpng) # Libpng generated pnglibconf.h file
|
${CMAKE_CURRENT_BINARY_DIR}/third_party/libpng) # Libpng generated pnglibconf.h file
|
||||||
set(PNG_INCLUDE_DIR ${PNG_INCLUDE_DIRS})
|
set(PNG_INCLUDE_DIR ${PNG_INCLUDE_DIRS} CACHE PATH "")
|
||||||
|
set(PNG_PNG_INCLUDE_DIR ${PNG_INCLUDE_DIRS} CACHE PATH "")
|
||||||
endif()
|
endif()
|
||||||
include_directories(${PNG_INCLUDE_DIRS})
|
include_directories(${PNG_INCLUDE_DIRS})
|
||||||
add_definitions(-DPNG_NO_MMX_CODE) # Do not use MMX optimizations in PNG code
|
add_definitions(-DPNG_NO_MMX_CODE) # Do not use MMX optimizations in PNG code
|
||||||
|
Loading…
Reference in New Issue
Block a user