Skip to content

Commit 2ab1cbd

Browse files
committed
Add ws2.
1 parent 689d412 commit 2ab1cbd

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

modules/openapi-generator/src/main/resources/cpp-oatpp-server/cmake.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ if(WIN32)
3434
target_link_libraries(${PROJECT_NAME} ${EXTERNAL_INSTALL_LOCATION}/lib/oatpp-1.3.0/oatpp.lib)
3535
else()
3636
target_link_libraries(${PROJECT_NAME} ${EXTERNAL_INSTALL_LOCATION}/lib/oatpp-1.3.0/liboatpp.a)
37+
target_link_libraries(${PROJECT_NAME} ws2_32)
3738
endif(WIN32){{/addExternalLibs}}

samples/server/petstore/cpp-oatpp/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ if(WIN32)
3232
target_link_libraries(${PROJECT_NAME} ${EXTERNAL_INSTALL_LOCATION}/lib/oatpp-1.3.0/oatpp.lib)
3333
else()
3434
target_link_libraries(${PROJECT_NAME} ${EXTERNAL_INSTALL_LOCATION}/lib/oatpp-1.3.0/liboatpp.a)
35+
target_link_libraries(${PROJECT_NAME} ws2_32)
3536
endif(WIN32)

0 commit comments

Comments
 (0)