mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-30 21:18:34 +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_LIBRARY png_static)
|
||||
set(PNG_LIBRARIES ${PNG_LIBRARY})
|
||||
set(PNG_PNG_INCLUDE_DIR ${LIBPNG_DIR})
|
||||
set(PNG_INCLUDE_DIRS
|
||||
${LIBPNG_DIR}
|
||||
${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()
|
||||
include_directories(${PNG_INCLUDE_DIRS})
|
||||
add_definitions(-DPNG_NO_MMX_CODE) # Do not use MMX optimizations in PNG code
|
||||
|
Loading…
Reference in New Issue
Block a user