summaryrefslogtreecommitdiff
path: root/media-libs/x265/files/x265-3.5-r5-cpp-std.patch
blob: 99fbf9bd75dea3f85313b098a48bcc0c0ca8b768 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Paul Zander <negril.nx+gentoo@gmail.com>
Date: Fri, 23 Aug 2024 14:31:40 +0200
Subject: [PATCH] don't force old c++ standards

Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -221,14 +221,6 @@ if(GCC)
     if(NOT INTEL_CXX AND NOT CLANG AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 8.0)
         add_definitions(-Wno-class-memaccess)
     endif()
-    if(ENABLE_HDR10_PLUS)
-        if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.8")
-            message(FATAL_ERROR "gcc version above 4.8 required to support hdr10plus")
-        endif()
-        add_definitions(-std=gnu++11)
-    else()
-        add_definitions(-std=gnu++98)
-    endif()
     if(ENABLE_PIC)
          add_definitions(-fPIC)
     endif(ENABLE_PIC)