From fbd21fe8e759a1016c4082ad140af7bf626c49c7 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Fri, 14 Mar 2014 14:39:11 +0100 Subject: use std=c++11 --- CMakeLists.txt | 2 +- swig/zypp.i | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9cb417a..e02ba6b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ cmake_minimum_required(VERSION 2.8) ENABLE_TESTING() -SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++0x -fPIC -fno-strict-aliasing") +SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11 -fPIC -fno-strict-aliasing") # # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked diff --git a/swig/zypp.i b/swig/zypp.i index 71bfdb3..53b781d 100644 --- a/swig/zypp.i +++ b/swig/zypp.i @@ -20,6 +20,7 @@ #define BOOST_NO_CXX11_NOEXCEPT #define BOOST_NO_CXX11_RVALUE_REFERENCES #define BOOST_NO_CXX11_SMART_PTR +#define constexpr %{ /* Includes the header in the wrapper code */ -- cgit v1.2.3