30 lines
983 B
Diff
30 lines
983 B
Diff
|
From 027de3b5d44f6291bd4785ec7530661ac98cbf53 Mon Sep 17 00:00:00 2001
|
||
|
From: Fabian Vogt <fvogt@suse.de>
|
||
|
Date: Wed, 14 Jun 2023 09:06:02 +0200
|
||
|
Subject: [PATCH] Build with C++17
|
||
|
|
||
|
Recent abseil requires C++14 and TW builds it with C++17, so just use 17
|
||
|
directly.
|
||
|
---
|
||
|
cpp/CMakeLists.txt | 4 ++--
|
||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
|
||
|
index cdd7a08..bc331aa 100644
|
||
|
--- a/cpp/CMakeLists.txt
|
||
|
+++ b/cpp/CMakeLists.txt
|
||
|
@@ -19,8 +19,8 @@ cmake_minimum_required (VERSION 3.11)
|
||
|
project (libphonenumber VERSION 8.13.0)
|
||
|
|
||
|
# Pick the C++ standard to compile with.
|
||
|
-# Abseil currently supports C++11, C++14, and C++17.
|
||
|
-set(CMAKE_CXX_STANDARD 11 CACHE STRING "C++ standard used to compile this project")
|
||
|
+# Abseil currently supports C++14, and C++17.
|
||
|
+set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard used to compile this project")
|
||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||
|
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
|
||
|
|
||
|
--
|
||
|
2.41.0
|
||
|
|