Comments (3)
@trueqbit I think its due to how sqlite_orm depends on sqlite. It might be good to add this as an example for building and linking with a local sqlite lib rather than a system installed version.
from sqlite_orm.
Fixed it - the sqlite.lib was being built I just needed to find and point to the location:
FetchContent_Declare(sqlite3 URL https://www.sqlite.org/2023/sqlite-amalgamation-3420000.zip)
if (NOT sqlite3_POPULATED)
# notice that we do not call `add_subdirectory`, we simply fetch and then
# use the subdirectory sources directly.
FetchContent_Populate(sqlite3)
endif ()
add_library(sqlite3 STATIC
${sqlite3_SOURCE_DIR}/sqlite3.c
${sqlite3_SOURCE_DIR}/sqlite3ext.h
)
set (SQLite3_INCLUDE_DIR ${sqlite3_SOURCE_DIR})
set (SQLite3_LIBRARY ${CMAKE_CURRENT_BINARY_DIR}/sqlite3.lib)
from sqlite_orm.
@adamski Is it a problem related to sqlite_orm?
from sqlite_orm.
Related Issues (20)
- Multi database connection HOT 2
- How to write CMake to link SQLite3 statically? HOT 1
- Cannot bind with getters and setters when inherited HOT 4
- Invalid order by order HOT 4
- Use of recent sqlite_orm setting primary_key().autoincrement() does not compile HOT 12
- Templated Storage Schema - Compilation Issues HOT 10
- 怎样定义 make_storage 返回模板类型 的 c++类成员变量 HOT 1
- "no such table" error on existing database HOT 1
- Delete a foreign key HOT 5
- sqlite-orm fails to compile under uwp HOT 5
- C:\src\sqlite_orm\tests\schema\virtual_table.cpp(6): exception: no such module: FTS5: SQL logic error HOT 2
- I need to store a vector of vector<std::string> as a field in a persistent class, how can I do this? HOT 8
- add column sync_schema will recreate table HOT 12
- compile error with gcc 5.3.1 HOT 6
- Warning on CMake >= 3.27 because of support for CMake >= 2.8.12
- Cannot Build my project HOT 2
- `SQLITE_DQS` Compile Option HOT 7
- Failed to compile origin/dev branch using GCC 8.3 HOT 2
- Do not understand select statement generation HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlite_orm.