File tree Expand file tree Collapse file tree
modules/openapi-generator/src/main/resources/cpp-oatpp-server
samples/server/petstore/cpp-oatpp Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,4 +30,8 @@ add_executable(${PROJECT_NAME} ${SRCS})
3030target_compile_features(${ PROJECT_NAME} PRIVATE cxx_std_17)
3131
3232{ {#addExternalLibs} }add_dependencies(${ PROJECT_NAME} OATPP)
33- target_link_libraries(${ PROJECT_NAME} ${ EXTERNAL_INSTALL_LOCATION} /lib/oatpp-1.3.0/liboatpp.a){ {/addExternalLibs} }
33+ if(WIN32)
34+ target_link_libraries(${ PROJECT_NAME} ${ EXTERNAL_INSTALL_LOCATION} /lib/oatpp-1.3.0/liboatpp.lib)
35+ else()
36+ target_link_libraries(${ PROJECT_NAME} ${ EXTERNAL_INSTALL_LOCATION} /lib/oatpp-1.3.0/liboatpp.a)
37+ endif(WIN32){ {/addExternalLibs} }
Original file line number Diff line number Diff line change @@ -28,4 +28,8 @@ add_executable(${PROJECT_NAME} ${SRCS})
2828target_compile_features (${PROJECT_NAME} PRIVATE cxx_std_17 )
2929
3030add_dependencies (${PROJECT_NAME} OATPP )
31+ if (WIN32 )
32+ target_link_libraries (${PROJECT_NAME} ${EXTERNAL_INSTALL_LOCATION} /lib/oatpp-1.3.0/liboatpp.lib )
33+ else ()
3134target_link_libraries (${PROJECT_NAME} ${EXTERNAL_INSTALL_LOCATION} /lib/oatpp-1.3.0/liboatpp.a )
35+ endif (WIN32 )
You can’t perform that action at this time.
0 commit comments