From 23a96df0cedd7236fbd70087c8e3ee12b222040e Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 4 Jul 2023 01:21:51 +0200 Subject: common.cmake: downgrade C++ standard version I was testing the new version (C++20) with some existing code, and immediately got build errors. Apparently, now this: const auto s = u8"hello"; means that s has the type of const char8_t *const, where char8_t is some batshit insanity with 0 backwards compatibility. For example, you cannot make a std::string out of this??? Fuck that, and fuck C++ committee morons. --- examples/boost/CMakeLists.txt | 2 +- examples/dynamic/CMakeLists.txt | 2 +- examples/simple/CMakeLists.txt | 2 +- examples/static/CMakeLists.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/boost/CMakeLists.txt b/examples/boost/CMakeLists.txt index bfb1f68..e7ac156 100644 --- a/examples/boost/CMakeLists.txt +++ b/examples/boost/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.12) +cmake_minimum_required(VERSION 3.8) project(example_boost) diff --git a/examples/dynamic/CMakeLists.txt b/examples/dynamic/CMakeLists.txt index d4e0712..1b3c93f 100644 --- a/examples/dynamic/CMakeLists.txt +++ b/examples/dynamic/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.12) +cmake_minimum_required(VERSION 3.8) project(example_dynamic) diff --git a/examples/simple/CMakeLists.txt b/examples/simple/CMakeLists.txt index 94810a4..6ee2762 100644 --- a/examples/simple/CMakeLists.txt +++ b/examples/simple/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.12) +cmake_minimum_required(VERSION 3.8) project(example_simple) diff --git a/examples/static/CMakeLists.txt b/examples/static/CMakeLists.txt index c5d77d3..b03d452 100644 --- a/examples/static/CMakeLists.txt +++ b/examples/static/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.12) +cmake_minimum_required(VERSION 3.8) project(example_static) -- cgit v1.2.3