CMake: Find CURL when wxUSE_WEBREQUEST_CURL is ON

This commit is contained in:
Tobias Taschner 2018-10-31 13:42:56 +01:00
parent f64fbf0b4b
commit 6a23c1342e
No known key found for this signature in database
GPG Key ID: AE6ECD71294F87FD

View File

@ -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)