mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-04-16 23:12:57 +02:00
Boost.Test has dropped C++03 support.
msgpack-c adjusted it.
This commit is contained in:
parent
636a0130ba
commit
28cfb1ff81
4
.github/workflows/gha.yml
vendored
4
.github/workflows/gha.yml
vendored
@ -60,7 +60,7 @@ jobs:
|
||||
|
||||
case ${{ matrix.pattern }} in
|
||||
0)
|
||||
export MSGPACK_CXX_VERSION="MSGPACK_CXX11=OFF"
|
||||
export MSGPACK_CXX_VERSION="MSGPACK_CXX11=ON"
|
||||
;;
|
||||
1)
|
||||
export API_VERSION=1
|
||||
@ -137,7 +137,7 @@ jobs:
|
||||
case ${{ matrix.pattern }} in
|
||||
0)
|
||||
export CXX="clang++-10"
|
||||
export MSGPACK_CXX_VERSION="MSGPACK_CXX11=OFF"
|
||||
export MSGPACK_CXX_VERSION="MSGPACK_CXX11=ON"
|
||||
;;
|
||||
1)
|
||||
export CXX="g++-10"
|
||||
|
@ -24,7 +24,7 @@ SET (VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REVISION})
|
||||
LIST (APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/")
|
||||
SET (GNUCXX_STD_SUPPORT_VERSION "4.3")
|
||||
|
||||
OPTION (MSGPACK_CXX11 "Using c++11 compiler" OFF)
|
||||
OPTION (MSGPACK_CXX11 "Using c++11 compiler" ON)
|
||||
OPTION (MSGPACK_CXX14 "Using c++14 compiler" OFF)
|
||||
OPTION (MSGPACK_CXX17 "Using c++17 compiler" OFF)
|
||||
OPTION (MSGPACK_CXX20 "Using c++20 compiler" OFF)
|
||||
@ -153,6 +153,9 @@ IF (MSGPACK_GEN_COVERAGE)
|
||||
ENDIF ()
|
||||
|
||||
IF (MSGPACK_BUILD_TESTS)
|
||||
IF (${CMAKE_CXX_STANDARD} EQUAL 98)
|
||||
MESSAGE (FATAL_ERROR "Tests requires C++11 or newer")
|
||||
ENDIF ()
|
||||
IF ((CMAKE_VERSION VERSION_GREATER 3.27) OR
|
||||
(CMAKE_VERSION VERSION_EQUAL 3.27))
|
||||
CMAKE_POLICY(SET CMP0145 OLD)
|
||||
|
Loading…
x
Reference in New Issue
Block a user