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 @@ -2,8 +2,6 @@ cmake_minimum_required (VERSION 3.2)
22
33project(api-server)
44
5- set(CMAKE_CXX_FLAGS "${ CMAKE_CXX_FLAGS} -std=c++17 -pg -g3" )
6-
75{ {#addExternalLibs} }
86include(ExternalProject)
97
@@ -29,5 +27,7 @@ file(GLOB SRCS
2927)
3028
3129add_executable(${ PROJECT_NAME} ${ SRCS} )
30+ target_compile_features(${ PROJECT_NAME} PRIVATE cxx_std_17)
31+
3232{ {#addExternalLibs} }add_dependencies(${ PROJECT_NAME} OATPP)
3333target_link_libraries(${ PROJECT_NAME} ${ EXTERNAL_INSTALL_LOCATION} /lib/oatpp-1.3.0/liboatpp.a){ {/addExternalLibs} }
Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ cmake_minimum_required (VERSION 3.2)
22
33project (api-server)
44
5- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -pg -g3" )
6-
75include (ExternalProject )
86
97set (EXTERNAL_INSTALL_LOCATION ${CMAKE_CURRENT_SOURCE_DIR} /external)
@@ -27,5 +25,7 @@ file(GLOB SRCS
2725)
2826
2927add_executable (${PROJECT_NAME} ${SRCS} )
28+ target_compile_features (${PROJECT_NAME} PRIVATE cxx_std_17 )
29+
3030add_dependencies (${PROJECT_NAME} OATPP )
3131target_link_libraries (${PROJECT_NAME} ${EXTERNAL_INSTALL_LOCATION} /lib/oatpp-1.3.0/liboatpp.a )
You can’t perform that action at this time.
0 commit comments