From 4edf4a25f4a99f9fbd1507d4d727ade2a737087c Mon Sep 17 00:00:00 2001 From: Teddy Reed Date: Fri, 5 Feb 2016 15:44:30 -0800 Subject: [PATCH] Require Thrift 0.9.3 --- CMake/FindThrift.cmake | 5 +++++ CMakeLists.txt | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CMake/FindThrift.cmake b/CMake/FindThrift.cmake index 94886719..a782045a 100644 --- a/CMake/FindThrift.cmake +++ b/CMake/FindThrift.cmake @@ -50,3 +50,8 @@ if(NOT DEFINED THRIFT_FOUND) THRIFT_INCLUDE_DIR ) endif() + +if (NOT "${THRIFT_VERSION}" STREQUAL "Thrift version 0.9.3") + WARNING_LOG("[Ref #1830] Cannot use thrift versions <0.9.3 (found ${THRIFT_VERSION})") + message(FATAL_ERROR "[Ref #1830] Need thrift version 0.9.3") +endif() diff --git a/CMakeLists.txt b/CMakeLists.txt index 5343edaf..1a7534e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -340,7 +340,7 @@ find_package(Gflags REQUIRED) find_package(Gtest REQUIRED) find_package(RocksDB REQUIRED) find_package(Sqlite3 REQUIRED) -find_package(Thrift 0.9.1 REQUIRED) +find_package(Thrift 0.9.3 REQUIRED) # If using the RocksDB LITE version our code must also define ROCKSDB_LITE=1 if(ROCKSDB_LITE_FOUND)