Commit 854bd3a
committed
Add SQLITECPP_FIND_SQLITE to disable find_package
Currently the SQLite3 code is quite limited, and really only has two
options:
- build bundled sqlite3 version
- use find_package() to find it
This commit adds an option to enable a third case: letting an external
cmake project worry about finding or building and providing sqlite by
setting `SQLITECPP_FIND_SQLITE` to `OFF`. This requires that the parent
project has already set up some SQLite3::SQLite cmake target that
SQLiteCpp can then simply use without trying to find anything.
This is particularly useful when building a custom sqlite3 (such as
SQLite3 Multiple Ciphers) which will not be found via `find_package`.
Currently you can *somewhat* hack around this by setting a bunch of
cache variables to make the find_package short-circuit, but that feels
inelegant.1 parent b6fcb54 commit 854bd3a
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| 282 | + | |
282 | 283 | | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
287 | 288 | | |
288 | 289 | | |
289 | | - | |
| 290 | + | |
290 | 291 | | |
291 | 292 | | |
292 | 293 | | |
| |||
332 | 333 | | |
333 | 334 | | |
334 | 335 | | |
335 | | - | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
336 | 344 | | |
337 | 345 | | |
338 | 346 | | |
| |||
0 commit comments