File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ SET (VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REVISION})
2424LIST (APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR} /cmake/" )
2525SET (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 )
2828OPTION (MSGPACK_CXX14 "Using c++14 compiler" OFF )
2929OPTION (MSGPACK_CXX17 "Using c++17 compiler" OFF )
3030OPTION (MSGPACK_CXX20 "Using c++20 compiler" OFF )
@@ -153,6 +153,9 @@ IF (MSGPACK_GEN_COVERAGE)
153153ENDIF ()
154154
155155IF (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)
You can’t perform that action at this time.
0 commit comments