From 6a23c1342ebf029e0400cdefa41be9ebd3f304ce Mon Sep 17 00:00:00 2001 From: Tobias Taschner Date: Wed, 31 Oct 2018 13:42:56 +0100 Subject: [PATCH] CMake: Find CURL when wxUSE_WEBREQUEST_CURL is ON --- build/cmake/lib/net/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) 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)