Skip to content

Commit

Permalink
Revert "Update OpenCVFindWebP.cmake with sturkmen72's suggestion"
Browse files Browse the repository at this point in the history
  • Loading branch information
asmorkalov authored Feb 1, 2025
1 parent 43cebe5 commit 4e2f047
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions cmake/OpenCVFindWebP.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,10 @@

# Look for the header file.

unset(WEBP_FOUND)
FIND_PATH(WEBP_INCLUDE_DIR NAMES webp/decode.h)

find_package(WebP QUIET)

if(TARGET WebP::webp AND TARGET WebP::webpdemux AND TARGET WebP::libwebpmux)
MARK_AS_ADVANCED(WEBP_INCLUDE_DIR)
MARK_AS_ADVANCED(WEBP_LIBRARY)

SET(WEBP_FOUND TRUE)
SET(WEBP_LIBRARY WebP)
SET(WEBP_INCLUDE_DIR)
if(NOT WEBP_INCLUDE_DIR)
unset(WEBP_FOUND)
else()
MARK_AS_ADVANCED(WEBP_INCLUDE_DIR)

Expand Down

0 comments on commit 4e2f047

Please sign in to comment.