File use-cpp11.patch of Package cegui
From: Matthias Bach <marix@marix.org>
Date: 2019-01-13T20:19:23+0100
Subject: Compile with C++11
References: none
Upstream: no, upstream wants to stay on C++98
Some of the dependencies in Factory are on versions that can only
be compiled with C++11.
diff -Naru cegui-0.8.7o/CMakeLists.txt cegui-0.8.7/CMakeLists.txt
--- cegui-0.8.7o/CMakeLists.txt 2016-04-28 21:12:57.000000000 +0200
+++ cegui-0.8.7/CMakeLists.txt 2019-01-13 20:18:01.443178619 +0100
@@ -72,10 +72,12 @@
if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"))
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++03")
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
elseif (NOT CMAKE_VERSION VERSION_LESS "3.1")
set (CMAKE_C_STANDARD_REQUIRED TRUE)
set (CMAKE_C_STANDARD "99")
+ #set (CMAKE_CXX_STANDARD_REQUIRED TRUE)
+ set (CMAKE_CXX_STANDARD "11")
endif ()
# Look for packages