Skip to content

Commit de04d88

Browse files
committed
Fix build on distros with custom toolchain files
1 parent f30d77a commit de04d88

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## [0.9.1] -- 2023-01-13
4+
5+
- Fix building with user specified toolchain files.
6+
7+
We still specified C++17 as the C++ standard, which was overwritten by our
8+
toolchain file, but some distros use their own, so this fixes the build for
9+
them. (This probably only affects building the tests and examples.)
10+
311
## [0.9.0] -- 2023-01-12
412

513
- Support error formatting using {fmt}/spdlog.

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set(
88
FILEPATH
99
"Default toolchain"
1010
)
11-
set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard")
11+
set(CMAKE_CXX_STANDARD 20 CACHE STRING "C++ standard")
1212
set(CMAKE_CXX_STANDARD_REQUIRED ON CACHE BOOL "Require C++ standard to be supported")
1313
set(CMAKE_POSITION_INDEPENDENT_CODE ON CACHE BOOL "compile as PIC by default")
1414

@@ -38,12 +38,12 @@ option(USE_BUNDLED_RE2 "Use the bundled version of re2." ${HUNTER_ENABLED})
3838

3939
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.12)
4040
project(matrix_client
41-
VERSION 0.9.0
41+
VERSION 0.9.1
4242
DESCRIPTION "Client API library for Matrix."
4343
HOMEPAGE_URL https://github.com/Nheko-Reborn/mtxclient)
4444
else()
4545
project(matrix_client
46-
VERSION 0.9.0
46+
VERSION 0.9.1
4747
DESCRIPTION "Client API library for Matrix.")
4848
endif()
4949

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22

3-
version: 0.9.0-{build}
3+
version: 0.9.1-{build}
44

55
configuration: Release
66
image: Visual Studio 2022

lib/http/client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ coeurl::Headers
6161
mtx::http::Client::prepare_headers(bool requires_auth)
6262
{
6363
coeurl::Headers headers;
64-
headers["User-Agent"] = "mtxclient v0.9.0";
64+
headers["User-Agent"] = "mtxclient v0.9.1";
6565

6666
if (requires_auth && !access_token_.empty())
6767
headers["Authorization"] = "Bearer " + access_token();

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project(
22
'mtxclient',
33
'cpp',
4-
version : '0.9.0',
4+
version : '0.9.1',
55
meson_version : '>=0.57.0',
66
license : 'MIT',
77
default_options : 'cpp_std=c++20'

0 commit comments

Comments
 (0)