aboutsummaryrefslogtreecommitdiff
path: root/ports/sqlite-orm/fix-features-build-error.patch
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2021-01-11 16:06:54 +0800
committerGitHub <noreply@github.com>2021-01-11 00:06:54 -0800
commit7959513538066f8d22d54942d098c65c8d0990e1 (patch)
treec02685048c3220e1d2b742d34fa3059f3a2ec7b0 /ports/sqlite-orm/fix-features-build-error.patch
parent56e1606ea05dc9e51548256d6a4474564e226ffa (diff)
downloadvcpkg-7959513538066f8d22d54942d098c65c8d0990e1.tar.gz
vcpkg-7959513538066f8d22d54942d098c65c8d0990e1.zip
[sqlite-orm] Update to 1.6 (#15517)
* [sqlite-orm] Update to 1.6 * Removed unused FEATURE_PATCHES * Add vcpkg_fixup_cmake_targets() * Update patch
Diffstat (limited to 'ports/sqlite-orm/fix-features-build-error.patch')
-rw-r--r--ports/sqlite-orm/fix-features-build-error.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/ports/sqlite-orm/fix-features-build-error.patch b/ports/sqlite-orm/fix-features-build-error.patch
new file mode 100644
index 000000000..ce34583d1
--- /dev/null
+++ b/ports/sqlite-orm/fix-features-build-error.patch
@@ -0,0 +1,50 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index dd86d2f..6696809 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -32,15 +32,14 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
+ include(CTest)
+
+ ### Dependencies
+-add_subdirectory(dependencies)
+
+ ### Main Build Targets
+ set(SqliteOrm_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/include")
+ add_library(sqlite_orm INTERFACE)
+ add_library(sqlite_orm::sqlite_orm ALIAS sqlite_orm)
+
+-find_package(SQLite3 REQUIRED)
+-target_link_libraries(sqlite_orm INTERFACE SQLite::SQLite3)
++find_package(unofficial-sqlite3 CONFIG REQUIRED)
++target_link_libraries(sqlite_orm INTERFACE unofficial::sqlite3::sqlite3)
+
+ target_sources(sqlite_orm INTERFACE $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include/sqlite_orm/sqlite_orm.h>)
+
+diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
+index 2857b65..3ee46e6 100644
+--- a/examples/CMakeLists.txt
++++ b/examples/CMakeLists.txt
+@@ -4,5 +4,5 @@ file(GLOB files "*.cpp")
+ foreach(file ${files})
+ get_filename_component(file_basename ${file} NAME_WE)
+ add_executable(${file_basename} ${file})
+- target_link_libraries(${file_basename} PRIVATE sqlite_orm sqlite3)
++ target_link_libraries(${file_basename} PRIVATE sqlite_orm)
+ endforeach()
+diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
+index fd41e70..8087899 100644
+--- a/tests/CMakeLists.txt
++++ b/tests/CMakeLists.txt
+@@ -7,9 +7,11 @@ option(SqliteOrm_SysSqlite "Use system version of sqlite library" OFF)
+ if(SqliteOrm_SysSqlite)
+ message(FATAL_ERROR "WIP: please, disable the SqliteOrm_SysSqlite option.")
+ else()
+- add_subdirectory(third_party/sqlite)
++ find_package(unofficial-sqlite3 CONFIG REQUIRED)
+ endif()
+
++find_package(Catch2 CONFIG REQUIRED)
++
+ add_executable(unit_tests tests.cpp tests2.cpp tests3.cpp tests4.cpp tests5.cpp private_getters_tests.cpp pragma_tests.cpp explicit_columns.cpp core_functions_tests.cpp index_tests.cpp constraints/composite_key.cpp static_tests.cpp operators/arithmetic_operators.cpp operators/like.cpp operators/glob.cpp operators/in.cpp operators/cast.cpp operators/is_null.cpp operators/not_operator.cpp operators/bitwise.cpp dynamic_order_by.cpp prepared_statement_tests/select.cpp prepared_statement_tests/get_all.cpp prepared_statement_tests/get_all_pointer.cpp prepared_statement_tests/get_all_optional.cpp prepared_statement_tests/update_all.cpp prepared_statement_tests/remove_all.cpp prepared_statement_tests/get.cpp prepared_statement_tests/get_pointer.cpp prepared_statement_tests/get_optional.cpp prepared_statement_tests/update.cpp prepared_statement_tests/remove.cpp prepared_statement_tests/insert.cpp prepared_statement_tests/replace.cpp prepared_statement_tests/insert_range.cpp prepared_statement_tests/replace_range.cpp prepared_statement_tests/insert_explicit.cpp pragma_tests.cpp simple_query.cpp static_tests/is_bindable.cpp static_tests/arithmetic_operators_result_type.cpp static_tests/tuple_conc.cpp static_tests/node_tuple.cpp static_tests/bindable_filter.cpp static_tests/count_tuple.cpp static_tests/member_traits_tests.cpp static_tests/select_return_type.cpp constraints/default.cpp constraints/unique.cpp constraints/foreign_key.cpp constraints/check.cpp table_tests.cpp statement_serializator_tests/primary_key.cpp statement_serializator_tests/column_names.cpp statement_serializator_tests/autoincrement.cpp statement_serializator_tests/arithmetic_operators.cpp statement_serializator_tests/core_functions.cpp statement_serializator_tests/comparison_operators.cpp statement_serializator_tests/unique.cpp statement_serializator_tests/foreign_key.cpp statement_serializator_tests/collate.cpp statement_serializator_tests/check.cpp statement_serializator_tests/index.cpp statement_serializator_tests/indexed_column.cpp unique_cases/get_all_with_two_tables.cpp unique_cases/prepare_get_all_with_case.cpp unique_cases/index_named_table_with_fk.cpp unique_cases/issue525.cpp unique_cases/delete_with_two_fields.cpp unique_cases/join_iterator_ctor_compilation_error.cpp get_all_custom_containers.cpp select_asterisk.cpp backup_tests.cpp transaction_tests.cpp)
+
+