aboutsummaryrefslogtreecommitdiff
path: root/ports/sqlite-orm/fix-test-feature.patch
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2020-09-05 11:16:00 +0800
committerGitHub <noreply@github.com>2020-09-04 20:16:00 -0700
commite0f0e7c1ec9b59543190543bfac93a37a2d1094a (patch)
tree630d8b24a82a1f9fd5b19d692e6689d013ec8562 /ports/sqlite-orm/fix-test-feature.patch
parent2e110d26c621ba2536de7f47708bf1bf16f5159d (diff)
downloadvcpkg-e0f0e7c1ec9b59543190543bfac93a37a2d1094a.tar.gz
vcpkg-e0f0e7c1ec9b59543190543bfac93a37a2d1094a.zip
[sqlite-orm] Add features and also fix usage (#13328)
Diffstat (limited to 'ports/sqlite-orm/fix-test-feature.patch')
-rw-r--r--ports/sqlite-orm/fix-test-feature.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/ports/sqlite-orm/fix-test-feature.patch b/ports/sqlite-orm/fix-test-feature.patch
new file mode 100644
index 000000000..2f8259384
--- /dev/null
+++ b/ports/sqlite-orm/fix-test-feature.patch
@@ -0,0 +1,30 @@
+diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
+index 578cbed..c1c6d56 100644
+--- a/tests/CMakeLists.txt
++++ b/tests/CMakeLists.txt
+@@ -4,11 +4,11 @@ option(SQLITE_ORM_OMITS_CODECVT "Omits codec testing" OFF)
+
+ 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)
+-endif()
++#if(SqliteOrm_SysSqlite)
++# message(FATAL_ERROR "WIP: please, disable the SqliteOrm_SysSqlite option.")
++#else()
++# add_subdirectory(third_party/sqlite)
++#endif()
+
+ add_executable(unit_tests tests.cpp tests2.cpp tests3.cpp tests4.cpp tests4.cpp private_getters_tests.cpp pragma_tests.cpp explicit_columns.cpp core_functions_tests.cpp composite_key.cpp static_tests.cpp operators.cpp operators/like.cpp operators/glob.cpp operators/in.cpp operators/cast.cpp operators/is_null.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 constraints/default.cpp constraints/foreign_key.cpp)
+
+@@ -19,7 +19,7 @@ if(SQLITE_ORM_OMITS_CODECVT)
+ endif()
+
+ find_package(Catch2 REQUIRED)
+-target_link_libraries(unit_tests PRIVATE sqlite_orm sqlite3 Catch2::Catch2)
++target_link_libraries(unit_tests PRIVATE sqlite_orm Catch2::Catch2)
+
+ enable_testing()
+