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:
Sébastien Rombauts 2013-09-25 23:55:09 +02:00
parent c5828d8787
commit 28e9b702f7
2 changed files with 8 additions and 8 deletions

View File

@ -8,6 +8,14 @@
cmake_minimum_required (VERSION 2.6)
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)
# build the SQLite3 C library for Windows (for ease of use)
add_subdirectory (sqlite3)

View File

@ -10,14 +10,6 @@
*/
#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 "Exception.h"