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
CMake build fails if samples enabled but webready disabled, due to conntest sample dependency #2961
Comments
Meson doesn't have the same issue, because the fake Lines 70 to 74 in 41959b4
Lines 158 to 165 in 41959b4
Lines 192 to 194 in 41959b4
|
Thank you for the report and the suggested fix. Are you able to submit a PR directly perhaps? |
...Actually, that Meson code seems strange to me — But The net effect of all that is that curl is required when building a |
Sure, will do. |
@neheb can best comment on Meson... |
Nope, I read that wrong. I had it in my head that the code was, if get_option('webready')
curl_dep = dependency(
'libcurl', disabler: true, required: get_option('webready')) But it's not, it's curl_dep = dependency(
'libcurl', disabler: true, required: get_option('curl')) My mistake, sorry. But the curl-is-effectively-required thing is still somewhat the case. (It will only affect But a disabler |
Describe the bug
At least in the CMake build,
samples/CMakeLists.txt
configures building of theconntest
application unconditionally when theEXIV2_BUILD_SAMPLES
option is enabled. But ifEXIV2_ENABLE_WEBREADY
isOFF
, there will be noExiv2::http
class in the library (heck,exiv2.hpp
won't even includeexiv2/http.hpp
), and theconntest
code requiresExiv2::http
.To Reproduce
Steps to reproduce the behavior:
Full compile output
Relevant compile error:
Expected behavior
The
conntest
sample isn't built, because the library lacks HTTP support.Desktop (please complete the following information):
main
branchgcc (GCC) 13.2.1 20240316 (Red Hat 13.2.1-7)
Additional context
This change to
samples/CMakeLists.txt
enabled the build to complete:The text was updated successfully, but these errors were encountered: