summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Andres <ma@suse.de>2013-04-29 17:38:45 +0200
committerMichael Andres <ma@suse.de>2013-04-29 17:38:45 +0200
commit05eb87243d28be648e59508edc03fe275e76dcfa (patch)
tree77f6c350dd0e748a0da983a2d08ed41ad8700f32
parent707dc10558ca8414ae0b7d9dc892a22aa6194d18 (diff)
downloadlibzypp-bindings-05eb87243d28be648e59508edc03fe275e76dcfa.tar.gz
libzypp-bindings-05eb87243d28be648e59508edc03fe275e76dcfa.tar.bz2
libzypp-bindings-05eb87243d28be648e59508edc03fe275e76dcfa.zip
Compile with -std=c++11
-rw-r--r--CMakeLists.txt2
-rw-r--r--package/libzypp-bindings.changes5
-rw-r--r--swig/zypp.i1
3 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 622e8cc..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 -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/package/libzypp-bindings.changes b/package/libzypp-bindings.changes
index 2193625..6d7dfc7 100644
--- a/package/libzypp-bindings.changes
+++ b/package/libzypp-bindings.changes
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Mon Apr 29 17:37:14 CEST 2013 - ma@suse.de
+
+- Compile with -std=c++11
+
+-------------------------------------------------------------------
Mon Jan 28 14:02:12 CET 2013 - mls@suse.de
- work around swig problem creating two different types for
diff --git a/swig/zypp.i b/swig/zypp.i
index 69ff44a..6aab2bd 100644
--- a/swig/zypp.i
+++ b/swig/zypp.i
@@ -108,6 +108,7 @@ SWIGINTERNINLINE SV *SWIG_From_double SWIG_PERL_DECL_ARGS_1(double value);
#include <sstream>
+#undef seed // don't know where it comes from, but it conflicts with <random>
#include "zypp/base/PtrTypes.h"
#include "zypp/base/ReferenceCounted.h"
#include "zypp/Edition.h"