diff options
author | Michael Andres <ma@suse.de> | 2014-03-14 14:39:11 +0100 |
---|---|---|
committer | Michael Andres <ma@suse.de> | 2014-03-14 14:39:11 +0100 |
commit | fbd21fe8e759a1016c4082ad140af7bf626c49c7 (patch) | |
tree | e3bdf32f3a2c3ce97ec042680e1f005eba5cf5a7 | |
parent | e5ee79199f04dfc2638be754bf189d2bcb40e940 (diff) | |
download | libzypp-bindings-fbd21fe8e759a1016c4082ad140af7bf626c49c7.tar.gz libzypp-bindings-fbd21fe8e759a1016c4082ad140af7bf626c49c7.tar.bz2 libzypp-bindings-fbd21fe8e759a1016c4082ad140af7bf626c49c7.zip |
use std=c++11
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | swig/zypp.i | 1 |
2 files changed, 2 insertions, 1 deletions
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 */ |