Commit 5feebae 1 parent 4b91200 commit 5feebae Copy full SHA for 5feebae
File tree 7 files changed +8
-9
lines changed
7 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ jobs:
100
100
conan profile detect
101
101
echo "tools.cmake.cmaketoolchain:generator=Ninja" >> ~/.conan2/global.conf
102
102
mkdir build
103
- conan install -o "influxdb_cxx/*":boost=${{ matrix.boost }} -o "influxdb_cxx/*":tests=True -s compiler.cppstd=17 --build=missing . -of build
103
+ conan install -o "influxdb_cxx/*":boost=${{ matrix.boost }} -o "influxdb_cxx/*":tests=True -s compiler.cppstd=20 --build=missing . -of build
104
104
conan install --build=missing -of build --requires "libcurl/7.87.0" --deployer full_deploy
105
105
- name : Build
106
106
run : |
@@ -128,7 +128,7 @@ jobs:
128
128
brew install boost
129
129
conan profile detect
130
130
mkdir build
131
- conan install -o "influxdb_cxx/*":system=True -o "influxdb_cxx/*":tests=True -s compiler.cppstd=17 --build=missing . -of build
131
+ conan install -o "influxdb_cxx/*":system=True -o "influxdb_cxx/*":tests=True -s compiler.cppstd=20 --build=missing . -of build
132
132
- name : Build
133
133
run : script/ci_build.sh
134
134
- name : Install
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ if(NOT MSVC AND NOT INCLUDED_AS_SUBPROJECT)
44
44
)
45
45
endif ()
46
46
47
- set (CMAKE_CXX_STANDARD 17 )
47
+ set (CMAKE_CXX_STANDARD 20 )
48
48
set (CMAKE_CXX_STANDARD_REQUIRED ON )
49
49
set (CMAKE_CXX_EXTENSIONS OFF )
50
50
# We explicitly export the public interface
Original file line number Diff line number Diff line change 3
3
[ ![ ci] ( https://github.com/offa/influxdb-cxx/actions/workflows/ci.yml/badge.svg )] ( https://github.com/offa/influxdb-cxx/actions/workflows/ci.yml )
4
4
[ ![ GitHub release] ( https://img.shields.io/github/release/offa/influxdb-cxx.svg )] ( https://github.com/offa/influxdb-cxx/releases )
5
5
[ ![ License] ( https://img.shields.io/badge/license-MIT-yellow.svg )] ( LICENSE )
6
- ![ C++] ( https://img.shields.io/badge/c++-17 -green.svg )
6
+ ![ C++] ( https://img.shields.io/badge/c++-20 -green.svg )
7
7
8
8
9
9
InfluxDB C++ client library
@@ -21,7 +21,7 @@ InfluxDB C++ client library
21
21
22
22
### Build requirements
23
23
- CMake 3.12+
24
- - C++17 compiler
24
+ - C++20 compiler
25
25
26
26
### Dependencies
27
27
- [ ** cpr** ] ( https://github.com/libcpr/cpr ) (required)<sup >i)</sup >
Original file line number Diff line number Diff line change @@ -22,6 +22,6 @@ conan install \
22
22
-of . \
23
23
-o " influxdb_cxx/*" :system=True \
24
24
-o " influxdb_cxx/*" :tests=True \
25
- -s compiler.cppstd=17 \
25
+ -s compiler.cppstd=20 \
26
26
--build=missing \
27
27
..
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ conan install \
20
20
-g CMakeDeps \
21
21
--build=missing \
22
22
-s build_type=${BUILD_TYPE} \
23
- -s compiler.cppstd=17 \
23
+ -s compiler.cppstd=20 \
24
24
--requires=cpr/1.10.0
25
25
26
26
cmake -DCMAKE_TOOLCHAIN_FILE=./conan_toolchain.cmake -DCMAKE_BUILD_TYPE=" ${BUILD_TYPE} " " $@ " ..
Original file line number Diff line number Diff line change @@ -87,5 +87,4 @@ target_link_libraries(InfluxDB
87
87
Threads::Threads
88
88
)
89
89
90
- # Use C++17
91
90
target_compile_features (InfluxDB PUBLIC cxx_std_${CMAKE_CXX_STANDARD} )
Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ find_package(InfluxDB REQUIRED)
5
5
6
6
add_executable (test_package example.cpp)
7
7
target_link_libraries (test_package PRIVATE InfluxData::InfluxDB)
8
- target_compile_features (test_package PRIVATE cxx_std_17 )
8
+ target_compile_features (test_package PRIVATE cxx_std_20 )
You can’t perform that action at this time.
0 commit comments