mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 17:56:13 -04:00
Suppressed the flag SQLITE_ENABLE_COLUMN_METADATA from SQLiteC++ wrapper source code.
- it can be defined by CMake in client code application
This commit is contained in:
parent
c5828d8787
commit
28e9b702f7
@ -8,6 +8,14 @@
|
|||||||
cmake_minimum_required (VERSION 2.6)
|
cmake_minimum_required (VERSION 2.6)
|
||||||
project (SQLiteCpp)
|
project (SQLiteCpp)
|
||||||
|
|
||||||
|
# Enable the use of SQLite column metadata and Column::getName() method,
|
||||||
|
# Require that the sqlite3 library is also compiled with this flag.
|
||||||
|
option (SQLITE_ENABLE_COLUMN_METADATA
|
||||||
|
"Enable Column::getName(). Require support from sqlite3 library." OFF)
|
||||||
|
if (SQLITE_ENABLE_COLUMN_METADATA)
|
||||||
|
add_definitions(-DSQLITE_ENABLE_COLUMN_METADATA)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
# build the SQLite3 C library for Windows (for ease of use)
|
# build the SQLite3 C library for Windows (for ease of use)
|
||||||
add_subdirectory (sqlite3)
|
add_subdirectory (sqlite3)
|
||||||
|
@ -10,14 +10,6 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enable APIs that provide convenient access to meta-data about tables and queries.
|
|
||||||
*
|
|
||||||
* @see #getName()
|
|
||||||
*
|
|
||||||
* @warning Requires this SQLITE_ENABLE_COLUMN_METADATA preprocessor macro to be also defined at compile times of the SQLite library.
|
|
||||||
*/
|
|
||||||
#define SQLITE_ENABLE_COLUMN_METADATA
|
|
||||||
#include <sqlite3.h>
|
#include <sqlite3.h>
|
||||||
|
|
||||||
#include "Exception.h"
|
#include "Exception.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user