Commit da490581 authored by Albert Astals Cid's avatar Albert Astals Cid

Compile in C++11 mode

I tried using AX_CXX_COMPILE_STDCXX_11 for the autotools side but could not get it to fill CXXFLAGS or any other variable i could find, help welcome
parent aa863326
project(poppler)
cmake_minimum_required(VERSION 2.6.0 FATAL_ERROR)
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
......@@ -26,6 +26,8 @@ set(POPPLER_MINOR_VERSION "52")
set(POPPLER_MICRO_VERSION "0")
set(POPPLER_VERSION "${POPPLER_MAJOR_VERSION}.${POPPLER_MINOR_VERSION}.${POPPLER_MICRO_VERSION}")
set (CMAKE_CXX_STANDARD 11)
# command line switches
option(ENABLE_XPDF_HEADERS "Install unsupported xpdf headers." OFF)
option(BUILD_GTK_TESTS "Whether compile the GTK+ test programs." ON)
......
......@@ -26,6 +26,7 @@ AC_PROG_CC_STDC
#fi
AC_PROG_CXX
AC_PROG_INSTALL
CXXFLAGS="$CXXFLAGS -std=c++11"
dnl ##### Check for pkgconfig
PKG_PROG_PKG_CONFIG
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment