wechat_qr: disable iconv dependancy for mingw#2916
wechat_qr: disable iconv dependancy for mingw#2916opencv-pushbot merged 1 commit intoopencv:masterfrom
Conversation
|
uff, how can OpenCV CN Ubuntu 18.04 x86-64 fail on goturn tracking tests using OpenCV(3.4.14-pre) ? pr was against master branch ... |
|
Hmm. I was just about to open a PR to enable iconv in Adding this block near the top of # iconv support isn't automatic on some systems
if(CMAKE_VERSION VERSION_GREATER 3.11)
find_package(Iconv QUIET)
if(Iconv_FOUND)
ocv_target_link_libraries(${the_module} Iconv::Iconv)
endif()
endif()It's also safe on POSIX, I built that tree under Fedora and you just see this go by in the CMake output: ...Can you comment on why you settled on disabling iconv instead, @berak ? |
|
@ferdnyc ofc, linking iconv properly is much better than disabling it ;) (tbh, i stopped fiddling with cmake, when dddgz proposed disabling it) |
|
@berak Perfect, that's the answer I was hoping for! I'll go ahead and open a new PR to link libiconv in to wechat_qrcode, and let the downstream MSYS2 packaging maintainers know that the update I already submitted is the way forward, then. Thanks! |
resolves #2862
this also collapses all
#if defined(XXX)blocks to disable iconv support into a single onePull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.