blob: aa0ef74132766629daaee045068c433e49362928 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-CMakeLists.txt,v 1.2 2022/10/05 08:32:33 fcambus Exp $
Do not disable extensions, needs gnu++17 for alloca(3).
--- CMakeLists.txt.orig 2022-09-30 21:24:30.000000000 +0000
+++ CMakeLists.txt
@@ -146,7 +146,7 @@ else ()
-Wall -Wextra -Wno-unused-parameter -Wpointer-arith -Wuninitialized
)
- set(CMAKE_CXX_EXTENSIONS OFF)
+ set(CMAKE_CXX_EXTENSIONS ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wold-style-cast")
if (NOT WITH_EXCEPTIONS)
|