diff options
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
|
