Hello!
Now I successfully compile soci v3.2.3 with Sqlite v3.29 backend. Tests
on my AMD64 compatible desktop run without errors.
But I must note that current documentation lies! It ignores Sqlite
variables. So in order to compile I had to tweak CMake files! I attached
this patch. Maybe somebody find it useful.
Best regards.
Szyk Cech
diff -u -r ./soci-3.2.3/cmake/modules/FindSQLite3.cmake ./soci/cmake/modules/FindSQLite3.cmake
--- ./soci-3.2.3/cmake/modules/FindSQLite3.cmake 2015-04-08 22:32:00.000000000 +0200
+++ ./soci/cmake/modules/FindSQLite3.cmake 2019-08-25 19:54:17.703953686 +0200
@@ -29,9 +29,10 @@
$ENV{SystemDrive}/SQLite3/*/include
$ENV{SQLITE_ROOT}/include
${SQLITE_ROOT_DIR}/include
- $ENV{OSGEO4W_ROOT}/include)
+ $ENV{OSGEO4W_ROOT}/include
+ ${SQLITE_INCLUDE_DIR})
-set(SQLITE3_NAMES sqlite3_i sqlite3)
+set(SQLITE3_NAMES sqlite sqlite3_i sqlite3)
find_library(SQLITE3_LIBRARY
NAMES ${SQLITE3_NAMES}
PATHS
@@ -44,9 +45,10 @@
$ENV{SystemDrive}/SQLite3/*/lib
$ENV{SQLITE_ROOT}/lib
${SQLITE_ROOT_DIR}/lib
- $ENV{OSGEO4W_ROOT}/lib)
+ $ENV{OSGEO4W_ROOT}/lib
+ ${SQLITE_LIBRARIES})
-set(SQLITE3_LIBRARIES
+set(SQLITE3_LIBRARIES
${SQLITE3_LIBRARIES}
${SQLITE3_LIBRARY})
Tylko w ./soci: CMakeLists.txt.user
_______________________________________________
soci-users mailing list
soci-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/soci-users