use std=c++11
authorMichael Andres <ma@suse.de>
Fri, 14 Mar 2014 13:39:11 +0000 (14:39 +0100)
committerMichael Andres <ma@suse.de>
Fri, 14 Mar 2014 13:39:11 +0000 (14:39 +0100)
CMakeLists.txt
swig/zypp.i

index 9cb417a..e02ba6b 100644 (file)
@@ -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
index 71bfdb3..53b781d 100644 (file)
@@ -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 */