diff --git a/build/cmake/lib/net/CMakeLists.txt b/build/cmake/lib/net/CMakeLists.txt index c19c24c092..7d1e71cfda 100644 --- a/build/cmake/lib/net/CMakeLists.txt +++ b/build/cmake/lib/net/CMakeLists.txt @@ -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)