Skip to content

Commit

Permalink
http_server_httpsys.cpp requires linking against httpapi.lib, http_cl…
Browse files Browse the repository at this point in the history
…ient_winhttp.cpp does not. (#1253)
  • Loading branch information
garethsb authored and BillyONeal committed Oct 29, 2019
1 parent f4c863b commit 7e50b51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Release/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 7e50b51

Please sign in to comment.