Skip to content

Commit 7e50b51

Browse files
garethsbBillyONeal
authored andcommitted
http_server_httpsys.cpp requires linking against httpapi.lib, http_client_winhttp.cpp does not. (microsoft#1253)
1 parent f4c863b commit 7e50b51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Release/src/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ elseif(CPPREST_HTTP_CLIENT_IMPL STREQUAL "winhttppal")
140140
target_link_libraries(cpprest PUBLIC cpprestsdk_boost_internal cpprestsdk_openssl_internal cpprestsdk_winhttppal_internal)
141141
elseif(CPPREST_HTTP_CLIENT_IMPL STREQUAL "winhttp")
142142
target_link_libraries(cpprest PRIVATE
143-
httpapi.lib
144143
Winhttp.lib
145144
)
146145
target_sources(cpprest PRIVATE http/client/http_client_winhttp.cpp)
@@ -176,6 +175,9 @@ elseif(CPPREST_HTTP_LISTENER_IMPL STREQUAL "httpsys")
176175
http/listener/http_server_httpsys.cpp
177176
http/listener/http_server_httpsys.h
178177
)
178+
target_link_libraries(cpprest PRIVATE
179+
httpapi.lib
180+
)
179181
elseif(CPPREST_HTTP_LISTENER_IMPL STREQUAL "none")
180182
else()
181183
message(FATAL_ERROR "Invalid implementation")

0 commit comments

Comments
 (0)