Fixes to CMake build files for wxWebRequest
Fix wrong library name in wx_add_sample() for webrequest. Also prefer to disable wxWebRequest if no backends for it are available, for consistency with the other libraries.
This commit is contained in:
committed by
Vadim Zeitlin
parent
ff57081ff2
commit
b7450f52ff
@@ -308,6 +308,18 @@ if(wxUSE_LIBLZMA)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(wxUSE_WEBREQUEST_CURL)
|
||||
find_package(CURL)
|
||||
if(NOT CURL_FOUND)
|
||||
message(WARNING "CURL not found, wxWebSessionBackendCURL won't be available")
|
||||
wx_option_force_value(wxUSE_WEBREQUEST_CURL OFF)
|
||||
endif()
|
||||
endif()
|
||||
if (wxUSE_WEBREQUEST AND NOT (wxUSE_WEBREQUEST_WINHTTP OR wxUSE_WEBREQUEST_URLSESSION OR wxUSE_WEBREQUEST_CURL))
|
||||
message(WARNING "wxUSE_WEBREQUEST requires at least one backend, it won't be available")
|
||||
wx_option_force_value(wxUSE_WEBREQUEST OFF)
|
||||
endif()
|
||||
|
||||
if(UNIX)
|
||||
if(wxUSE_SECRETSTORE AND NOT APPLE)
|
||||
# The required APIs are always available under MSW and OS X but we must
|
||||
|
Reference in New Issue
Block a user