Skip to content

Upgrade googlegest to 1.14 to enable C++17 and C++20 #315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ set(RPCLIB_DEFAULT_PORT 8080
CACHE STRING "Default port used for running tests and examples")
set(RPCLIB_DEFAULT_BUFFER_SIZE "1024 << 10"
CACHE STRING "Default buffer size")
set(RPCLIB_CXX_STANDARD 11 CACHE STRING
"C++ version used to build rpclib (Currently: Only 11 and 14 supported)")
set(RPCLIB_CXX_STANDARD 14 CACHE STRING
"C++ version used to build rpclib (Currently: Only 14, 17 and 20 supported)")

if(RPCLIB_GENERATE_COMPDB)
set(CMAKE_EXPORT_COMPILE_COMMANDS "ON") # for YCM
Expand All @@ -47,8 +47,7 @@ if(RPCLIB_GENERATE_COMPDB)
copy ${CMAKE_BINARY_DIR}/compile_commands.json ${CMAKE_BINARY_DIR}/../compile_commands.json)
endif()

if(NOT ${RPCLIB_CXX_STANDARD} EQUAL 14 AND
NOT ${RPCLIB_CXX_STANDARD} EQUAL 11)
if(NOT (${RPCLIB_CXX_STANDARD} IN_LIST "14;17;20"))
message(fatal_error "Unsupported C++ standard: ${RPCLIB_CXX_STANDARD}")
endif()

Expand Down
Loading