When using the cmake build system, there is no check for curl, but later the build unconditionally tries to use curl/curl.h from include/wx/private/webrequest_curl.h and the build fails.
Platform and version information
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
This is strange, we use find_package(CURL) which should fail if libcurl is really unavailable.
Perhaps we need to add some variable this call sets to the include (and library) options?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Indeed, if find_package(CURL) cannot find CURL, it disables wxUSE_WEBREQUEST_CURL and curl.h should never be included.
Can you check the result variables here (like message("CURL_INCLUDE_DIRS=${CURL_INCLUDE_DIRS}"))? And check if the found directories have a curl/curl.h?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Closed #22648 as completed.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Sorry, this is a local problem.
The build framework I'm using tries to hide libraries that are not explicitly pulled in.
cmake finds the curl library anyway (pulled in indirectly via another dependency), but then the compiler wrapper is good enough to hide the header file and the build fails.
Nothing to do here, sorry for the noise!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()