Skip to content

Commit 1e4d9aa

Browse files
committed
This probably doesn't work, need to take a time out.
1 parent 2ab1cbd commit 1e4d9aa

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)
3232
{{#addExternalLibs}}add_dependencies(${PROJECT_NAME} OATPP)
3333
if(WIN32)
3434
target_link_libraries(${PROJECT_NAME} ${EXTERNAL_INSTALL_LOCATION}/lib/oatpp-1.3.0/oatpp.lib)
35+
target_link_libraries(${PROJECT_NAME} ws2_32)
3536
else()
3637
target_link_libraries(${PROJECT_NAME} ${EXTERNAL_INSTALL_LOCATION}/lib/oatpp-1.3.0/liboatpp.a)
37-
target_link_libraries(${PROJECT_NAME} ws2_32)
3838
endif(WIN32){{/addExternalLibs}}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)
3030
add_dependencies(${PROJECT_NAME} OATPP)
3131
if(WIN32)
3232
target_link_libraries(${PROJECT_NAME} ${EXTERNAL_INSTALL_LOCATION}/lib/oatpp-1.3.0/oatpp.lib)
33+
target_link_libraries(${PROJECT_NAME} ws2_32)
3334
else()
3435
target_link_libraries(${PROJECT_NAME} ${EXTERNAL_INSTALL_LOCATION}/lib/oatpp-1.3.0/liboatpp.a)
35-
target_link_libraries(${PROJECT_NAME} ws2_32)
3636
endif(WIN32)

0 commit comments

Comments
 (0)