File tree Expand file tree Collapse file tree 5 files changed +14761
-8352
lines changed Expand file tree Collapse file tree 5 files changed +14761
-8352
lines changed Original file line number Diff line number Diff line change @@ -94,3 +94,7 @@ Version 2.0.0 - July 25 2016
94
94
Remove Column::errmsg() method : use Database or Statement equivalents
95
95
More unit tests, with code coverage status on the GitHub page
96
96
Do not force MSVC to use static runtime if unit-tests are not build
97
+
98
+ Version 2.1.0 - July 18 2017
99
+ Update SQLite3 from 3.13 to latest 3.19.3 (2017-06-08)
100
+
Original file line number Diff line number Diff line change @@ -89,6 +89,12 @@ if (SQLITE_ENABLE_ASSERT_HANDLER)
89
89
add_definitions (-DSQLITECPP_ENABLE_ASSERT_HANDLER )
90
90
endif (SQLITE_ENABLE_ASSERT_HANDLER )
91
91
92
+ option (SQLITE_USE_LEGACY_STRUCT "Fallback to forward declaration of legacy struct sqlite3_value (pre SQLite 3.19)" OFF )
93
+ if (SQLITE_USE_LEGACY_STRUCT )
94
+ # Force forward declaration of legacy struct sqlite3_value (pre SQLite 3.19)
95
+ add_definitions (-DSQLITE_USE_LEGACY_STRUCT )
96
+ endif (SQLITE_USE_LEGACY_STRUCT )
97
+
92
98
93
99
## Build the C++ Wrapper ##
94
100
@@ -185,6 +191,12 @@ install(EXPORT ${PROJECT_NAME}Config DESTINATION lib/cmake/${PROJECT_NAME})
185
191
186
192
## Build provided copy of SQLite3 C library ##
187
193
194
+ # TODO NOCOMMIT
195
+ #find_package(sqlite3)
196
+ #if(sqlite3_VERSION VERSION_LESS "3.19")
197
+ # set_target_properties(SQLiteCpp PROPERTIES COMPILE_FLAGS "-DSQLITECPP_HAS_MEM_STRUCT")
198
+ #endif()
199
+
188
200
option (SQLITECPP_INTERNAL_SQLITE "Add the internal SQLite3 source to the project." ON )
189
201
if (SQLITECPP_INTERNAL_SQLITE )
190
202
# build the SQLite3 C library (for ease of use/compatibility) versus Linux sqlite3-dev package
Original file line number Diff line number Diff line change 17
17
// Forward declarations to avoid inclusion of <sqlite3.h> in a header
18
18
struct sqlite3 ;
19
19
struct sqlite3_context ;
20
+
21
+ #ifndef SQLITE_USE_LEGACY_STRUCT // Since SQLITE 3.19 (used by default since SQLiteCpp 2.1.0)
22
+ typedef struct sqlite3_value sqlite3_value;
23
+ #else // Before SQLite 3.19 (legacy struct forward declaration can be activated with CMake SQLITECPP_LEGACY_STRUCT var)
20
24
struct Mem ;
21
25
typedef struct Mem sqlite3_value;
26
+ #endif
22
27
23
28
24
29
namespace SQLite
You can’t perform that action at this time.
0 commit comments