Added option SQLITECPP_INTERNAL_SQLITE.

This makes it possible to disable the internal sqlite library for builds that already get the library from elsewhere.
This commit is contained in:
madmaxoft 2014-07-28 19:43:49 +02:00
parent eea90c70e4
commit 27b9d11181

View File

@ -115,10 +115,13 @@ endif (UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL
# SQLite3 library (Windows only) # SQLite3 library (Windows only)
option (SQLITECPP_INTERNAL_SQLITE "Add the internal SQLite3 source to the project." ON)
if (WIN32) if (WIN32)
# build the SQLite3 C library for Windows (for ease of use) versus Linux sqlite3-dev package if (SQLITECPP_INTERNAL_SQLITE)
add_subdirectory(sqlite3) # build the SQLite3 C library for Windows (for ease of use) versus Linux sqlite3-dev package
include_directories("${PROJECT_SOURCE_DIR}/sqlite3") add_subdirectory(sqlite3)
include_directories("${PROJECT_SOURCE_DIR}/sqlite3")
endif (SQLITECPP_INTERNAL_SQLITE)
endif (WIN32) endif (WIN32)