From fbd21050674a07b8c9616f68cb972804afc4c25f Mon Sep 17 00:00:00 2001 From: Suleyman TURKMEN Date: Fri, 31 Jan 2025 16:41:08 +0300 Subject: [PATCH] Merge pull request #26762 from sturkmen72:avif_cmake Fixed AVIF linkage on Windows #26762 Closes #26747 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [x] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake --- cmake/OpenCVFindAVIF.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/OpenCVFindAVIF.cmake b/cmake/OpenCVFindAVIF.cmake index 26195a7769..8f9358d70d 100644 --- a/cmake/OpenCVFindAVIF.cmake +++ b/cmake/OpenCVFindAVIF.cmake @@ -19,7 +19,7 @@ if(TARGET avif) MARK_AS_ADVANCED(AVIF_LIBRARY) SET(AVIF_FOUND TRUE) - GET_TARGET_PROPERTY(AVIF_LIBRARY avif LOCATION) + SET(AVIF_LIBRARY avif) GET_TARGET_PROPERTY(AVIF_INCLUDE_DIR1 avif INCLUDE_DIRECTORIES) GET_TARGET_PROPERTY(AVIF_INCLUDE_DIR2 avif INTERFACE_INCLUDE_DIRECTORIES) set(AVIF_INCLUDE_DIR)