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 31 32 33 34 35 36
|
From 8c131576953bbd983f71dfb80c237de3993916eb Mon Sep 17 00:00:00 2001
From: Ricardo Ribalda <ricardo@ribalda.com>
Date: Thu, 4 Mar 2021 19:43:43 +0100
Subject: [PATCH] CMakeLists: Set C++ standard
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Codebase is not compatible with c++17.
Fixes:
/<<PKGBUILDDIR>>/bitfile.cpp: In member function ‘void BitFile::readField(std::string&, FILE*)’:
/<<PKGBUILDDIR>>/bitfile.cpp:619:3: error: reference to ‘byte’ is ambiguous
619 | byte t[2];
| ^~~~
Signed-off-by: Ricardo Ribalda <ricardo@ribalda.com>
---
CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fc82a6f..21755da 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,6 +5,7 @@ set(xc3sprog_VERSION_MINOR 0)
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}")
set(CMAKE_CXX_FLAGS "-g -Wall -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2")
+set (CMAKE_CXX_STANDARD 11)
cmake_minimum_required(VERSION 2.6)
find_package(PkgConfig REQUIRED)
--
2.30.1
|