diff --git a/Release/src/CMakeLists.txt b/Release/src/CMakeLists.txt index c9d0349a87..1c40257c47 100644 --- a/Release/src/CMakeLists.txt +++ b/Release/src/CMakeLists.txt @@ -140,7 +140,6 @@ elseif(CPPREST_HTTP_CLIENT_IMPL STREQUAL "winhttppal") target_link_libraries(cpprest PUBLIC cpprestsdk_boost_internal cpprestsdk_openssl_internal cpprestsdk_winhttppal_internal) elseif(CPPREST_HTTP_CLIENT_IMPL STREQUAL "winhttp") target_link_libraries(cpprest PRIVATE - httpapi.lib Winhttp.lib ) target_sources(cpprest PRIVATE http/client/http_client_winhttp.cpp) @@ -176,6 +175,9 @@ elseif(CPPREST_HTTP_LISTENER_IMPL STREQUAL "httpsys") http/listener/http_server_httpsys.cpp http/listener/http_server_httpsys.h ) + target_link_libraries(cpprest PRIVATE + httpapi.lib + ) elseif(CPPREST_HTTP_LISTENER_IMPL STREQUAL "none") else() message(FATAL_ERROR "Invalid implementation")