CMake: Fix monolithic build

Don't target net and webview libraries directly, but use the wx_ function that will add it to the mono library when applicable.
This commit is contained in:
Maarten Bent
2022-04-09 17:23:26 +02:00
parent 0125a52376
commit f00e7ced27
4 changed files with 18 additions and 2 deletions

View File

@@ -32,6 +32,6 @@ if(WIN32)
endif()
if (wxUSE_WEBREQUEST_CURL)
target_include_directories(wxnet PRIVATE ${CURL_INCLUDE_DIRS})
wx_lib_include_directories(wxnet ${CURL_INCLUDE_DIRS})
wx_lib_link_libraries(wxnet PRIVATE ${CURL_LIBRARIES})
endif()