vcpkg/ports/sqlite-orm/fix-features-build-error.patch
klaus triendl b4f29c5445
[sqlite-orm] Update SQLite ORM to 1.8 (#28988)
* [sqlite-orm] Update to 1.8.0

* [sqlite-orm] Added "license" field to manifest

* [sqlite-orm] Update to 1.8.1

* [sqlite-orm] Corrected deprecated license

* [sqlite-orm] Removed unmerged 1.8.0 version from versions file

* [sqlite-orm] Revert: Removed unmerged 1.8.0 version from versions file

This reverts commit ebd658f0bf.

* [sqlite-orm] Ran `.\vcpkg x-add-version sqlite-orm` again

* [sqlite-orm] Removed unmerged 1.8.0 version from versions file
2023-01-30 17:16:22 -08:00

34 lines
1.2 KiB
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 436d30a6d..d64f3cbb7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -35,15 +35,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 2857b659e..3ee46e625 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()