mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-11-06 03:12:04 +01:00
26 lines
952 B
Diff
26 lines
952 B
Diff
From c3537f4be318ae90aa8c3c7a9a0541ac43adfbc0 Mon Sep 17 00:00:00 2001
|
|
From: Luca Weiss <luca@z3ntu.xyz>
|
|
Date: Tue, 30 Jan 2024 23:58:24 +0100
|
|
Subject: [PATCH] Upgrade C++ standard to C++17
|
|
|
|
---
|
|
CMakeLists.txt | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 50a71b7..0c95125 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -27,7 +27,7 @@ find_package(Threads)
|
|
include(GNUInstallDirs)
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic -Wextra -fvisibility=hidden")
|
|
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wextra")
|
|
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -Wall -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -Wextra")
|
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
|
|
add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY)
|
|
|
|
--
|
|
2.43.0
|
|
|