-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vcpkg-baseline][zxing-cpp] Fix build failure #11586
[vcpkg-baseline][zxing-cpp] Fix build failure #11586
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.cmake
to libiconv and add the find libcharset code.Set
opencv
andiconv
as features.Related: #11502.