From 27b9d111818af3b05bcf4153bb6e380fe1dd6816 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Mon, 28 Jul 2014 19:43:49 +0200 Subject: [PATCH] Added option SQLITECPP_INTERNAL_SQLITE. This makes it possible to disable the internal sqlite library for builds that already get the library from elsewhere. --- CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f40f74..622c355 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,10 +115,13 @@ endif (UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL # SQLite3 library (Windows only) +option (SQLITECPP_INTERNAL_SQLITE "Add the internal SQLite3 source to the project." ON) if (WIN32) - # build the SQLite3 C library for Windows (for ease of use) versus Linux sqlite3-dev package - add_subdirectory(sqlite3) - include_directories("${PROJECT_SOURCE_DIR}/sqlite3") + if (SQLITECPP_INTERNAL_SQLITE) + # build the SQLite3 C library for Windows (for ease of use) versus Linux sqlite3-dev package + add_subdirectory(sqlite3) + include_directories("${PROJECT_SOURCE_DIR}/sqlite3") + endif (SQLITECPP_INTERNAL_SQLITE) endif (WIN32)