diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2020-09-05 11:16:00 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-04 20:16:00 -0700 |
| commit | e0f0e7c1ec9b59543190543bfac93a37a2d1094a (patch) | |
| tree | 630d8b24a82a1f9fd5b19d692e6689d013ec8562 /ports/sqlite-orm/fix-build-error.patch | |
| parent | 2e110d26c621ba2536de7f47708bf1bf16f5159d (diff) | |
| download | vcpkg-e0f0e7c1ec9b59543190543bfac93a37a2d1094a.tar.gz vcpkg-e0f0e7c1ec9b59543190543bfac93a37a2d1094a.zip | |
[sqlite-orm] Add features and also fix usage (#13328)
Diffstat (limited to 'ports/sqlite-orm/fix-build-error.patch')
| -rw-r--r-- | ports/sqlite-orm/fix-build-error.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ports/sqlite-orm/fix-build-error.patch b/ports/sqlite-orm/fix-build-error.patch new file mode 100644 index 000000000..ca4e005d4 --- /dev/null +++ b/ports/sqlite-orm/fix-build-error.patch @@ -0,0 +1,24 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5ffbdf3..6debae6 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -39,6 +39,9 @@ set(ProjectName "SqliteOrm")
+
+ option(SqliteOrm_BuildTests "Build sqlite_orm unit tests" ON)
+
++find_package(unofficial-sqlite3 CONFIG REQUIRED)
++link_libraries(unofficial::sqlite3::sqlite3)
++
+ set(SqliteOrm_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/include")
+ add_library(sqlite_orm INTERFACE)
+
+@@ -75,7 +78,9 @@ if(SqliteOrm_BuildTests AND BUILD_TESTING)
+ add_subdirectory(tests)
+ endif()
+
++if(BUILD_EXAMPLES)
+ add_subdirectory(examples)
++endif()
+
+ install(TARGETS sqlite_orm EXPORT "${ProjectName}Targets"
+ INCLUDES DESTINATION "${INCLUDE_INSTALL_DIR}" COMPONENT Development
|
