904 Commits

Author SHA1 Message Date
Sébastien Rombauts
6bc108b452
Declare BUILD_SHARED_LIBS option for discoverability (#440)
BUILD_SHARED_LIBS is a standard CMake variable, but we declare it
explicitly to make it prominent
2023-08-18 22:34:26 +02:00
Sébastien Rombauts
3871ff0962 Don't build the googlemock subproject, only the main googletest library 2023-08-18 22:33:18 +02:00
Sébastien Rombauts
e6f2c000e6 Declare BUILD_SHARED_LIBS option for discoverability
BUILD_SHARED_LIBS is a standard CMake variable, but we declare it explicitly to make it prominent
2023-08-18 16:02:30 +02:00
Sébastien Rombauts
dfa4dd8005
Update usage of SQLITECPP_USE_STATIC_RUNTIME (#438)
- Replace the set() of "/MT" to REPLACE "/MD" "/MT" inspired from Zlib
licensed glfw https://github.com/glfw/glfw/blob/master/CMakeLists.txt
- Don't set SQLITECPP_USE_STATIC_RUNTIME by default when building with
unit tests. Use gtest_force_shared_crt to force googletest to link
against the default dynamic C++ runtime

Relates to #417
2023-08-18 16:01:47 +02:00
Sébastien Rombauts
2a43ce0cd5 Don't set SQLITECPP_USE_STATIC_RUNTIME by default when building with unit tests
Use gtest_force_shared_crt to force googletest to link against the default dynamic C++ runtime
2023-08-18 15:49:30 +02:00
Sébastien Rombauts
741078b379 Replace the set() of "/MT" to REPLACE "/MD" "/MT"
inspired from Zlib licensed glfw https://github.com/glfw/glfw/blob/master/CMakeLists.txt
2023-08-18 15:49:30 +02:00
Sébastien Rombauts
7a1649ce77 Merge pull request #441 Cleanup of the Github "build" workflow from SRombauts/github-actions-improvements 2023-08-18 15:48:09 +02:00
Sébastien Rombauts
fe4bf446db Merge pull request #439 Update CMake minimum version to 3.5 to get rid of a new deprecation warning with CMake 3.27 from SRombauts/cmake-update-minimum-version 2023-08-18 15:47:44 +02:00
Sébastien Rombauts
9976cdf744 Update cmake_minimum_required() to VERSION 3.5
Fix CMake 3.27 deprecation warning:

  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
2023-08-18 15:47:04 +02:00
Sébastien Rombauts
e1bb204bab Use github.ref_name instead of github.ref for readability 2023-08-18 14:57:10 +02:00
Sébastien Rombauts
8f8029cb7e Minor changes to the Github "build" workflow
- improve readability of logs with better name and single line of script per "run:" step
- improve readability of the script itself with less "name: " and additional spaces around varnames
2023-08-18 14:41:12 +02:00
Sébastien Rombauts
d8ac3b22d6
Merge pull request #434 Define SQLITECPP_COMPILE_DLL as PUBLIC from calumr/fix-dll-import 2023-08-17 10:50:10 +02:00
Calum Robinson
24a24b3be9 Define SQLITECPP_COMPILE_DLL as PUBLIC
* So that users of the SQLiteCpp lib have it defined automatically
* Fixed #432
2023-07-14 14:17:12 +01:00
Sébastien Rombauts
164a606004
Merge pull request #428 Add CMake option SQLITE_ENABLE_DBSTAT_VTAB and SQLITE_ENABLE_RTREE from SRombauts/cmake-sqlite-enable-dbstat-vtab 2023-06-12 14:54:27 +02:00
Sébastien Rombauts
8a3df039e5 Add CMake option SQLITE_ENABLE_DBSTAT_VTAB to enable DBSTAT read-only eponymous virtual table extension when building internal sqlite3 library.
See more here: https://www.sqlite.org/dbstat.html

Fix #426 Support building SQLite with with SQLITE_ENABLE_DBSTAT_VTAB compile option

Disabled by default
2023-05-31 13:50:10 +02:00
Sébastien Rombauts
4a85c81833 Remove option SQLITE_ENABLE_JSON1
since the JSON functions and operators are built into SQLite by default, as of SQLite version 3.38.0 (2022-02-22).

see issue #425 SQLITE_ENABLE_JSON1 flag does not appear to compile sqlite3 with this option
2023-05-31 13:45:24 +02:00
Sébastien Rombauts
2d8f4b9c18 Add CMake option SQLITE_ENABLE_RTREE to enable RTree extension when building internal sqlite3 library
See more here: https://sqlite.org/rtree.html

Disabled by default
2023-05-31 13:42:18 +02:00
Sébastien Rombauts
23a16ed341
Merge pull request #424 Set Meson version to 3.3.0 from ninjaoflight/patch-1 2023-05-29 20:23:44 +02:00
Jonathan Guzmán
3df13bfe0c
Update meson.build 2023-05-28 22:03:43 -06:00
Sébastien Rombauts
0e2994a00f Update SQLiteCpp meson wrap file to latest release 3.3.0 2023-05-24 19:00:10 +02:00
Sébastien Rombauts
4cb0bf68b7 Update changelog to version 3.3.0 2023-05-24 18:49:55 +02:00
Sébastien Rombauts
df11c667fd Update project version to 3.3.0 2023-05-24 18:49:55 +02:00
Sébastien Rombauts
7dbcf482f2 Update copyright notice to 2023 2023-05-24 18:49:55 +02:00
Sébastien Rombauts
cf3b75063b Minor code formating changes & comments 2023-05-24 18:49:40 +02:00
Sébastien Rombauts
4bb70c19b8 Ignore .vsconfig 2023-05-24 18:49:40 +02:00
Sébastien Rombauts
9ccc280547
Merge pull request #423 Update SQLite from 3.40.0 to 3.42.0 (2023-05-16) from SRombauts/update-sqlite 2023-05-24 18:47:31 +02:00
Sébastien Rombauts
5e6dde0b56 Update SQLite from 3.40.0 to 3.42.0 (2023-05-16) 2023-05-24 17:47:26 +02:00
Sébastien Rombauts
5e6ef45426
Merge pull request #413 Fix compiler warnings warning from ninjaoflight/fix-visibility-warning 2023-05-15 14:23:45 +02:00
Sébastien Rombauts
39070b2326
Merge pull request #415 Remove mismatched else condition in CMakeLists.txt from Timmmm/patch-1 2023-04-11 16:07:12 +02:00
Tim
be4c151c96
Remove mismatched else condition in CMakeLists.txt
From the CMake docs:

> Per legacy, the else() and endif() commands admit an optional <condition> argument. If used, it must be a verbatim repeat of the argument of the opening if command.
2023-04-11 14:36:48 +01:00
Jonathan Guzmán
da2c747f3e
give warning if stack protection is not supported 2023-04-01 13:53:26 -06:00
Jonathan Guzmán
6bdad41ce8
do not add SQLITECPP_API to cpp variables 2023-04-01 13:44:44 -06:00
Jonathan Guzmán
6745726698
remove SQLITECPP_API pragma messages
pragma message shows as a warning during the build compilation
2023-04-01 13:21:29 -06:00
Sébastien Rombauts
3ef5b1d238
Merge pull request #406 Dllexport import from pierre-aimi/dllexport_import 2023-03-07 09:59:11 +01:00
Pierre Proske
82afee652b Fix Mingw build and suppress attribute warnings 2023-03-07 17:03:32 +11:00
Pierre Proske
b736d0a759 Merged with master 2023-03-06 19:01:20 +11:00
Sébastien Rombauts
f6eaa111a7
Merge pull request #410 use checkout@v3 in CMake CI from ninjaoflight/fix-nodejs-warnings 2023-03-05 13:10:41 +01:00
Jonathan Guzmán
45350eda5c
use checkout@v3
NodeJS 12 actions are deprecated, use a newer checkout action instead
2023-03-04 22:16:16 -06:00
Sébastien Rombauts
2bc923b54a
Merge pull request #409 Update package.xml from poshul/patch-1 2023-03-04 16:46:21 +01:00
Samuel Wein
447eb730ef
Update package.xml
Bump version number
2023-03-03 12:13:31 +01:00
Sébastien Rombauts
5222d2f828
Merge pull request #407 Create Meson CI from ninjaoflight/patch-1 2023-02-17 07:28:14 +01:00
Sébastien Rombauts
53a2b81191
Merge pull request #408 correct executable name in meson from ninjaoflight/patch-2 2023-02-17 07:26:49 +01:00
Pierre Proske
790124b630 Merge branch 'dllexport_import' of https://github.com/pierre-aimi/SQLiteCpp into dllexport_import 2023-02-14 13:08:40 +11:00
Pierre Proske
2f00790811 Rename DLL_API to SQLITECPP_API, and add visibility attribute for gcc 2023-02-14 13:07:55 +11:00
Pierre Proske
060d5323c3 Rename DLL_API to –SQLITECPP_API, and add –visibility attribute for gcc 2023-02-14 11:31:54 +11:00
Pierre Proske
1eca00cb01 Fixed meson build thanks to @ninjaoflight 2023-02-14 10:34:48 +11:00
Pierre Proske
6110463dfe
Update include/SQLiteCpp/SQLiteCppExport.h
Use _WIN32 instead of WIN32

Co-authored-by: Jonathan Guzmán <jonguz5@hotmail.com>
2023-02-13 12:30:55 +11:00
Jonathan Guzmán
50703506e6
remove non required submodule 2023-02-12 17:12:12 -06:00
Jonathan Guzmán
43f74ef5a2
check if requires msvc 2023-02-12 17:06:58 -06:00
Jonathan Guzmán
82ac59d047
use chekout v3 as v2 is deprecated 2023-02-12 15:51:38 -06:00