Guard for GCC < 11 and update readme (#243)

This commit is contained in:
Michael Legleux
2022-08-10 12:02:44 -07:00
committed by GitHub
parent 709a8463b8
commit ae8303fdc8
2 changed files with 9 additions and 5 deletions

View File

@@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.16.3)
project(clio)
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 11)
message(FATAL_ERROR "GCC 11+ required for building clio")
endif()
option(BUILD_TESTS "Build tests" TRUE)
option(VERBOSE "Verbose build" TRUE)
@@ -12,7 +16,7 @@ endif()
if(NOT GIT_COMMIT_HASH)
if(VERBOSE)
message(WARNING "GIT_COMMIT_HASH not provided...looking for git")
message("GIT_COMMIT_HASH not provided...looking for git")
endif()
find_package(Git)
if(Git_FOUND)

View File

@@ -22,7 +22,7 @@ from which data can be extracted. The rippled node does not need to be running o
## Building
Clio is built with CMake. Clio requires c++20, and boost 1.75.0 or later.
Clio is built with CMake. Clio requires at least GCC-11 (C++20), and Boost 1.75.0 or later.
Use these instructions to build a Clio executable from the source. These instructions were tested on Ubuntu 20.04 LTS.