From 7e50b513398a5ec9cd72e62ade887adeccc73608 Mon Sep 17 00:00:00 2001 From: Gareth Sylvester-Bradley <31761158+garethsb-sony@users.noreply.github.com> Date: Tue, 29 Oct 2019 01:40:35 +0000 Subject: [PATCH] http_server_httpsys.cpp requires linking against httpapi.lib, http_client_winhttp.cpp does not. (#1253) --- Release/src/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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")