-
Notifications
You must be signed in to change notification settings - Fork 396
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
Ensure Iconv is found when provided via CFLAGS/LDFLAGS #430
Conversation
- by default find_file/find_library doesn't respect CFLAGS/LDFLAGS, and FindIconv fails to find Iconv; - by explicitly trying to link against `-liconv` - we're checking if library is available in such way; - additionally: if Iconv is detected as BUILT_IN, no need to explicitly depend on `Iconv::Iconv`;
Right now I don't have the environment to check this properly (except what is setup on CI). @neheb can you check this as part of the openwrt build? |
As soon as I get home. |
nope:
|
Updated. This time I was able to test it partially. |
Seems to have done it. A lot of work as compared to
though. |
Not a lot of work, compared to uncompleted #426 :) Besides, I'll ask CMake community, if this can be improved by CMake itself, even though openwrt CMake support is too incomplete as of yet. Thanks for testing it. |
I do agree CMake's Find_Iconv is not that great, Fixing it upstream would be good. The OpenWrt comment is interesting. I don't really know what the "proper" way of handling cross compilation is like this. Although cmake.mk probably predates whatever "proper" is. |
Let me share with you a few links, as a general reference:
BTW:
I'm successfully using with HIDAPI (and not only) in several of my projects. |
-liconv
- we're checking if library is available in such way;Iconv::Iconv
;Fixes: #429