[vcpkg-baseline][zxing-cpp] Fix build failure#11586
[vcpkg-baseline][zxing-cpp] Fix build failure#11586dan-shaw merged 4 commits intomicrosoft:masterfrom
Conversation
|
Since FindIconv is a cmake module shipped by cmake itself the correct solution would be to install a vcpkg-cmake-wrapper.cmake for iconv. |
|
@Neumann-A Since libiconv now exports cmake configuration files, why not use it? |
|
Because it is unofficial and other cmake ports also depending on it don't benefit from it without the wrapper. In the future iconv might also be changed to use its native buildsystem instead of the custom vcpkg one |
|
@Neumann-A The |
| @@ -0,0 +1,39 @@ | |||
| diff --git a/CMakeLists.txt b/CMakeLists.txt | |||
There was a problem hiding this comment.
You dont need this patch. Use -DCMAKE_DISABLE_FIND_PACKAGE_<package>=ON in the vcpkg_configure_cmake call instead (https://cmake.org/cmake/help/v3.0/variable/CMAKE_DISABLE_FIND_PACKAGE_PackageName.html)
|
Needs to move glib tombstone later, |
|
@JackBoosY Is this PR complete? |
|
@dan-shaw Yes, merge this plz. |
When building zxing-cpp, it links to libiconv, which depends on libcharset, but it is not added to the link list.
So add
vcpkg-cmake-wrapper.cmaketo libiconv and add the find libcharset code.Set
opencvandiconvas features.Related: #11502.