blob: 3009702c4ca8986781aa19ed5b9e9878d53c89a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
From 10e2d2c8fc16de6eac4579bb022a36b16b8f1b69 Mon Sep 17 00:00:00 2001
From: Xiretza <xiretza@xiretza.xyz>
Date: Sun, 29 May 2022 20:31:49 +0200
Subject: [PATCH] fix: set C++ standard to 14
GCC >= 11 defaults to C++17, but abseil needs to be compiled with the
same standard as the rest of the codebase, which sets CMAKE_CXX_STANDARD
to 14.
https://github.com/f4pga/prjxray/issues/1950
---
CMakeLists.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8a20d04a..029fc1f5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -21,6 +21,8 @@
# and then issuing `yum install cmake3` on the command line.
cmake_minimum_required(VERSION 3.5)
+set(CMAKE_CXX_STANDARD 14)
+
# Compiler id for Apple Clang is now AppleClang.
if (POLICY CMP0025)
cmake_policy(SET CMP0025 NEW)
--
2.36.1
|