diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-04 01:21:51 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-04 01:21:53 +0200 |
commit | 23a96df0cedd7236fbd70087c8e3ee12b222040e (patch) | |
tree | 0e44ba075712704be5074a650dba01a9ab0b7cca /common.cmake | |
parent | README & --help message updates (diff) | |
download | cmake-common-23a96df0cedd7236fbd70087c8e3ee12b222040e.tar.gz cmake-common-23a96df0cedd7236fbd70087c8e3ee12b222040e.zip |
common.cmake: downgrade C++ standard versionv4.0
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.
Diffstat (limited to 'common.cmake')
-rw-r--r-- | common.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common.cmake b/common.cmake index 8ab0686..57f4e83 100644 --- a/common.cmake +++ b/common.cmake @@ -10,7 +10,7 @@ # Add this to the top-level CMakeLists.txt (unless a higher version has already # been specified): # -# cmake_minimum_required(VERSION 3.12) +# cmake_minimum_required(VERSION 3.8) # Without this policy set, this line: # @@ -54,7 +54,7 @@ if(parent_dir) endif() if(NOT DEFINED CC_CXX_STANDARD) - set(CC_CXX_STANDARD "20" CACHE STRING "C++ standard version") + set(CC_CXX_STANDARD "17" CACHE STRING "C++ standard version") endif() if(NOT DEFINED CC_COMMON_OPTIONS) option(CC_COMMON_OPTIONS "Set common compiler options" "${default_value}") |