From 43e959bc5c4e68d0c2545a09ad4fc1c226885a22 Mon Sep 17 00:00:00 2001 From: "James E. King, III" Date: Tue, 4 Apr 2017 13:04:29 -0400 Subject: THRIFT-4165: better cmake support for C++ language level selection; fixed compiler warnings This closes #1236 --- CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 93ed8d2ac..9f57a66c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,14 @@ # under the License. # -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 3.1) + +# CMake 3.1 supports C++ standards selection with CMAKE_CXX_STANDARD +# If you need CMake 3.1+ for Ubuntu 14.04, try +# https://launchpad.net/~george-edison55/+archive/ubuntu/cmake-3.x +# If you need CMake 3.1+ for debian "jessie", get it from jessie-backports +# Otherwise +# http://cmake.org project("Apache Thrift") -- cgit v1.2.1