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)