From bf0356b977d1f0917af59d3d441acc243392d766 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Thu, 11 Feb 2016 23:10:55 +0100 Subject: [PATCH] [build] Force C++11 compilation when using CMake. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c532668..182207d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.6) +cmake_minimum_required(VERSION 3.1) set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules") project(GiNaC) @@ -25,6 +25,8 @@ add_custom_target(info ALL) add_custom_target(html) add_custom_target(pdf) +set (CMAKE_CXX_STANDARD 11) + find_package(CLN 1.2.2 REQUIRED) include_directories(${CLN_INCLUDE_DIR}) -- 2.44.0