From 53b929fa6e8cad9c94cd8c3e684eeb510f25a29c Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Mon, 24 Apr 2017 21:00:03 +0200 Subject: net-im/openmittsu: Version bump. Package-Manager: Portage-2.3.5, Repoman-2.3.2 --- net-im/openmittsu/files/openmittsu-cxx14.patch | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 net-im/openmittsu/files/openmittsu-cxx14.patch (limited to 'net-im/openmittsu/files') diff --git a/net-im/openmittsu/files/openmittsu-cxx14.patch b/net-im/openmittsu/files/openmittsu-cxx14.patch new file mode 100644 index 000000000000..e7de801e522d --- /dev/null +++ b/net-im/openmittsu/files/openmittsu-cxx14.patch @@ -0,0 +1,36 @@ +From 3b7ce3b82deeaa7500b25cccee263845555d8729 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ulrich=20M=C3=BCller?= +Date: Mon, 24 Apr 2017 20:48:08 +0200 +Subject: [PATCH] Set C++ standard to 14. + +Needed for CMake 3.1.0 or later, which would otherwise fall back +to -std=gnu++11 in flags.make. +--- + CMakeLists.txt | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index aef2b89..401f636 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -85,6 +85,8 @@ if(CMAKE_COMPILER_IS_GNUCC) + # Set standard flags for GCC + set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -funroll-loops") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall -pedantic") ++ set(CMAKE_CXX_STANDARD 14) ++ set(CMAKE_CXX_STANDARD_REQUIRED ON) + elseif(MSVC) + set(OPENMITTSU_COMPILED_BY "MSVC") + +@@ -112,6 +114,8 @@ else(CLANG) + set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++") + endif() + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -stdlib=${CLANG_STDLIB} -Wall -pedantic -Wno-unused-variable -ftemplate-depth=1024") ++ set(CMAKE_CXX_STANDARD 14) ++ set(CMAKE_CXX_STANDARD_REQUIRED ON) + endif() + + # +-- +2.12.2 + -- cgit v1.2.3-65-gdbad