CMake: Find CURL when wxUSE_WEBREQUEST_CURL is ON
This commit is contained in:
parent
f64fbf0b4b
commit
6a23c1342e
@ -31,4 +31,11 @@ if(WIN32)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (wxUSE_WEBREQUEST_CURL)
|
||||
find_package(CURL REQUIRED)
|
||||
|
||||
target_include_directories(net PRIVATE ${CURL_INCLUDE_DIRS})
|
||||
wx_lib_link_libraries(net PRIVATE CURL::libcurl)
|
||||
endif()
|
||||
|
||||
wx_finalize_lib(net)
|
||||
|
Loading…
Reference in New Issue
Block a user