Skip to content

Commit 8b21f2a

Browse files
authored
Merge pull request #570 from mtconnect/migrate_to_cpp_version_20
Migrate to cpp version 20, upgrade to boost 1.88, and update other dependencies.
2 parents 9c74f38 + d9812e9 commit 8b21f2a

292 files changed

Lines changed: 548 additions & 550 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ on:
2828

2929
jobs:
3030
build_windows:
31-
runs-on: windows-2022
32-
name: "Windows 2022 Arch: ${{ matrix.arch }}, Shared: ${{ matrix.shared }}"
31+
runs-on: windows-latest
32+
name: "Windows latest Arch: ${{ matrix.arch }}, Shared: ${{ matrix.shared }}"
3333
strategy:
3434
matrix:
3535
arch: ["x86", "amd64"]

CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set(AGENT_VERSION_MAJOR 2)
33
set(AGENT_VERSION_MINOR 6)
44
set(AGENT_VERSION_PATCH 0)
5-
set(AGENT_VERSION_BUILD 2)
5+
set(AGENT_VERSION_BUILD 3)
66
set(AGENT_VERSION_RC "")
77

88
# This minimum version is to support Visual Studio 2019 and C++ feature checking and FetchContent
@@ -22,13 +22,14 @@ set(CMAKE_INSTALL_DATADIR "${CMAKE_INSTALL_DATADIR}/mtconnect")
2222

2323
message(INFO " Shared build: ${SHARED_AGENT_LIB}")
2424

25-
project(cppagent LANGUAGES C CXX)
26-
2725
# We will define these properties by default for each CMake target to be created.
28-
set(CMAKE_CXX_STANDARD 17)
26+
set(CMAKE_CXX_STANDARD 20)
2927
set(CMAKE_CXX_STANDARD_REQUIRED ON)
3028
set(CMAKE_CXX_EXTENSIONS OFF)
31-
set(CXX_COMPILE_FEATURES cxx_std_17)
29+
set(CXX_COMPILE_FEATURES cxx_std_20)
30+
set(CMAKE_OSX_DEPLOYMENT_TARGET 13.3)
31+
32+
project(cppagent LANGUAGES C CXX)
3233

3334
set(WITH_RUBY ON CACHE STRING "With Ruby Support")
3435

agent/cppagent.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright Copyright 2009-2024, AMT – The Association For Manufacturing Technology (“AMT”)
2+
// Copyright Copyright 2009-2025, AMT – The Association For Manufacturing Technology (“AMT”)
33
// All rights reserved.
44
//
55
// Licensed under the Apache License, Version 2.0 (the "License");

conan/mqtt_cpp/conanfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
class MqttcppConan(ConanFile):
66
name = "mqtt_cpp"
7-
version = "13.2.1"
7+
version = "13.2.2"
88
license = "Boost Software License, Version 1.0"
99
author = "Takatoshi Kondo redboltz@gmail.com"
1010
url = "https://github.com/redboltz/mqtt_cpp"
1111
description = "MQTT client/server for C++14 based on Boost.Asio"
1212
topics = ("mqtt")
13-
requires = ["boost/1.85.0"]
13+
requires = ["boost/1.88.0"]
1414
no_copy_source = True
1515
exports_sources = "include/*"
1616

conan/mruby/conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def search_header_path(name)
155155
if is_msvc(self):
156156
if self.settings.build_type == 'Debug':
157157
f.write(" conf.compilers.each { |c| c.flags << '/Od' }\n")
158-
f.write(" conf.compilers.each { |c| c.flags << '/std:c++17' }\n")
158+
f.write(" conf.compilers.each { |c| c.flags << '/std:c++20' }\n")
159159
f.write(" conf.compilers.each { |c| c.flags << '/%s' }\n" % msvc_runtime_flag(self))
160160
else:
161161
if self.settings.build_type == 'Debug':

conan/profiles/clang

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ include(default)
22

33
[settings]
44
compiler.libcxx=libstdc++11
5+
compiler.cppstd=20
56

67
[env]
78
CC=/usr/bin/clang

conan/profiles/docker

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ include(default)
22

33
[settings]
44
compiler.libcxx=libstdc++11
5+
compiler.cppstd=20
56

67
[options]
78
without_ipv6=True

conan/profiles/gcc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ include(default)
22

33
[settings]
44
compiler.libcxx=libstdc++11
5+
compiler.cppstd=20
56

67
[system_tools]
78
cmake/>3.23.0

conan/profiles/macos

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ include(default)
22

33
[settings]
44
compiler=apple-clang
5-
compiler.cppstd=gnu17
5+
compiler.cppstd=20
66

77
[system_tools]
88
cmake/>3.26.0

conan/profiles/vs32

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ include(default)
22

33
[settings]
44
compiler=msvc
5-
compiler.cppstd=17
5+
compiler.cppstd=20
66
arch=x86
77
compiler.runtime=static
88
compiler.runtime_type=Release
99
build_type=Release
1010

11-
[options]
12-
winver=0x0600

0 commit comments

Comments
 (0)