Skip to content

Commit 28cfb1f

Browse files
committed
Boost.Test has dropped C++03 support.
msgpack-c adjusted it.
1 parent 636a013 commit 28cfb1f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/gha.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
6161
case ${{ matrix.pattern }} in
6262
0)
63-
export MSGPACK_CXX_VERSION="MSGPACK_CXX11=OFF"
63+
export MSGPACK_CXX_VERSION="MSGPACK_CXX11=ON"
6464
;;
6565
1)
6666
export API_VERSION=1
@@ -137,7 +137,7 @@ jobs:
137137
case ${{ matrix.pattern }} in
138138
0)
139139
export CXX="clang++-10"
140-
export MSGPACK_CXX_VERSION="MSGPACK_CXX11=OFF"
140+
export MSGPACK_CXX_VERSION="MSGPACK_CXX11=ON"
141141
;;
142142
1)
143143
export CXX="g++-10"

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ SET (VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REVISION})
2424
LIST (APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/")
2525
SET (GNUCXX_STD_SUPPORT_VERSION "4.3")
2626

27-
OPTION (MSGPACK_CXX11 "Using c++11 compiler" OFF)
27+
OPTION (MSGPACK_CXX11 "Using c++11 compiler" ON)
2828
OPTION (MSGPACK_CXX14 "Using c++14 compiler" OFF)
2929
OPTION (MSGPACK_CXX17 "Using c++17 compiler" OFF)
3030
OPTION (MSGPACK_CXX20 "Using c++20 compiler" OFF)
@@ -153,6 +153,9 @@ IF (MSGPACK_GEN_COVERAGE)
153153
ENDIF ()
154154

155155
IF (MSGPACK_BUILD_TESTS)
156+
IF (${CMAKE_CXX_STANDARD} EQUAL 98)
157+
MESSAGE (FATAL_ERROR "Tests requires C++11 or newer")
158+
ENDIF ()
156159
IF ((CMAKE_VERSION VERSION_GREATER 3.27) OR
157160
(CMAKE_VERSION VERSION_EQUAL 3.27))
158161
CMAKE_POLICY(SET CMP0145 OLD)

0 commit comments

Comments
 (0)