FindWEBP.cmake (libgd-2.3.1) | : | FindWEBP.cmake (libgd-2.3.2) | ||
---|---|---|---|---|
skipping to change at line 50 | skipping to change at line 50 | |||
include(FindZLIB) | include(FindZLIB) | |||
find_path(WEBP_INCLUDE_DIR decode.h | find_path(WEBP_INCLUDE_DIR decode.h | |||
/usr/local/include/webp | /usr/local/include/webp | |||
/usr/include/webp | /usr/include/webp | |||
) | ) | |||
set(WEBP_NAMES ${WEBP_NAMES} webp) | set(WEBP_NAMES ${WEBP_NAMES} webp) | |||
find_library(WEBP_LIBRARY | find_library(WEBP_LIBRARY | |||
NAMES ${WEBP_NAMES} | NAMES ${WEBP_NAMES} | |||
PATHS "${PROJECT_SOURCE_DIR}/../deps/lib" /usr/lib64 /usr/lib /usr/local/lib | PATHS /usr/lib64 /usr/lib /usr/local/lib | |||
) | ) | |||
if (WEBP_LIBRARY AND WEBP_INCLUDE_DIR) | if (WEBP_LIBRARY AND WEBP_INCLUDE_DIR) | |||
set(WEBP_INCLUDE_DIR ${WEBP_INCLUDE_DIR}) | set(WEBP_INCLUDE_DIR ${WEBP_INCLUDE_DIR}) | |||
set(WEBP_LIBRARIES ${WEBP_LIBRARY}) | set(WEBP_LIBRARIES ${WEBP_LIBRARY}) | |||
set(WEBP_FOUND "YES") | set(WEBP_FOUND "YES") | |||
endif (WEBP_LIBRARY AND WEBP_INCLUDE_DIR) | endif (WEBP_LIBRARY AND WEBP_INCLUDE_DIR) | |||
if (WEBP_FOUND) | if (WEBP_FOUND) | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |