Build fixes to compile on Linux Mint 17.2

This commit is contained in:
Atish Nazir 2015-08-04 12:19:12 +01:00
parent 29c518d9d7
commit c5e5421748

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1)
cmake_minimum_required(VERSION 2.8)
project(EncFS C CXX)
set (ENCFS_MAJOR 1)
@ -12,6 +12,10 @@ set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
"${CMAKE_SOURCE_DIR}/cmake")
# We need C++ 11
if(CMAKE_COMPILER_IS_GNUCXX)
list(APPEND CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
endif()
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED on)