Skip to content
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

libusb: cmake: Proper dependency on Iconv #405

Merged
merged 3 commits into from
May 2, 2022
Merged

libusb: cmake: Proper dependency on Iconv #405

merged 3 commits into from
May 2, 2022

Conversation

Youw
Copy link
Member

@Youw Youw commented Apr 25, 2022

  • explicitly add Iconv as a dependent library;
  • check if iconv requires pointer-to-const as input (introduce ICONV_CONST check);
  • NetBSD CI (has external Iconv library implementation that uses all of the above);

Closes: #44

- FindPkgConfig.cmake warns it is not called by find_package;
- CMake package `config` file and `exports` file names should not match,
otherwise it gets included recursively by GLOB expression;
- explicitly add Iconv as a dependent library;
- check if iconv requires pointer-to-const as input (introduce ICONV_CONST check);
- NetBSD CI (has external Iconv library implementation that uses all of the above);
@Youw
Copy link
Member Author

Youw commented Apr 25, 2022

OMG!

Several hours of coding (with some "dummy" tries on Linux) and no build failures on CI for the first try!

@Youw Youw requested a review from z3ntu April 25, 2022 17:10
@Youw Youw added libusb Related to libusb backend bsd FreeBSD, NetBSD, OpenBSD, etc labels Apr 25, 2022
Base automatically changed from cmake-export-fixes to master May 2, 2022 11:09
@Youw Youw merged commit cd95af8 into master May 2, 2022
@Youw Youw deleted the iconv-support branch May 2, 2022 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bsd FreeBSD, NetBSD, OpenBSD, etc libusb Related to libusb backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant