From cdca50a17ef9be2c7a1f0f1eea4b6c646a408f14 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Fri, 20 May 2016 16:29:53 +0200 Subject: [PATCH] Fix sqlite storage when building with CMake. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 19932aa56..b6144be09 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -118,7 +118,7 @@ if(ENABLE_TUNNEL) set(ENABLE_TUNNEL OFF CACHE BOOL "Enable tunnel support." FORCE) endif() endif() -if(SQLITE_STORAGE_ENABLED) +if(ENABLE_SQLITE_STORAGE) find_package(Sqlite3 REQUIRED) endif() if(ENABLE_NOTIFY) @@ -204,7 +204,7 @@ if(ZLIB_FOUND) endif() if(SQLITE3_FOUND) include_directories(${SQLITE3_INCLUDE_DIRS}) - if(SQLITE_STORAGE_ENABLED) + if(ENABLE_SQLITE_STORAGE) add_definitions("-DSQLITE_STORAGE_ENABLED") endif() endif()