Skip to content

Commit 32d3da9

Browse files
committed
Update to the latest oatpp version
1 parent e8e2089 commit 32d3da9

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

CMakeLists.txt

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,28 @@ target_include_directories(crud-lib PUBLIC src)
2525

2626
## link libs
2727

28-
find_package(SQLite3 REQUIRED)
29-
30-
find_package(oatpp 1.2.0 REQUIRED)
31-
find_package(oatpp-swagger 1.2.0 REQUIRED)
32-
find_package(oatpp-sqlite 1.2.0 REQUIRED)
28+
find_package(oatpp 1.2.5 REQUIRED)
29+
find_package(oatpp-swagger 1.2.5 REQUIRED)
30+
find_package(oatpp-sqlite 1.2.5 REQUIRED)
3331

3432
target_link_libraries(crud-lib
3533
# Oat++
3634
PUBLIC oatpp::oatpp
3735
PUBLIC oatpp::oatpp-swagger
3836
PUBLIC oatpp::oatpp-sqlite
39-
40-
# SQLite
41-
SQLite::SQLite3
4237
)
4338

39+
# If CMake can't find SQLite3:
40+
#
41+
# 1. Make sure that you've built oatpp-sqlite with -DOATPP_SQLITE_AMALGAMATION=ON flag
42+
# 2. If you are not willing to use SQLite amalgamation then uncomment the following lines:
43+
#
44+
#find_package(SQLite3 REQUIRED)
45+
#
46+
#target_link_libraries(crud-lib
47+
# PUBLIC SQLite::SQLite3
48+
#)
49+
4450
add_definitions(
4551
## define path to swagger-ui static resources folder
4652
-DOATPP_SWAGGER_RES_PATH="${oatpp-swagger_INCLUDE_DIRS}/../bin/oatpp-swagger/res"

0 commit comments

Comments
 (0)