summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"