mirror of https://github.com/bitcoin/bitcoin
Merge bitcoin/bitcoin#29696: tidy: remove todo, set minimum CMake to 3.22
11ee058ef5
tidy: remove C compiler check (fanquake)c3a4ea1971
tidy: set CMAKE_CXX_STANDARD to 20 (fanquake)5b690aeb15
tidy: remove terminfo TODO (fanquake)24410e560a
tidy: set minimum CMake to 3.22 (fanquake) Pull request description: See https://github.com/hebasto/bitcoin/pull/123 for the minimum version bump. ACKs for top commit: hebasto: re-ACK11ee058ef5
. Tree-SHA512: 94a508ea24bf17919961bbdbc2e9d17658858e179c3b2017d5932557af32530d9d6aab197453aa5444f5478c417129c5a8e39522ff82bafac0d5a6966c7246d3
This commit is contained in:
commit
53f4607cc8
|
@ -1,14 +1,25 @@
|
|||
cmake_minimum_required(VERSION 3.9)
|
||||
cmake_minimum_required(VERSION 3.22)
|
||||
|
||||
project(bitcoin-tidy VERSION 1.0.0 DESCRIPTION "clang-tidy checks for Bitcoin Core")
|
||||
project(bitcoin-tidy
|
||||
VERSION
|
||||
1.0.0
|
||||
DESCRIPTION "clang-tidy checks for Bitcoin Core"
|
||||
LANGUAGES CXX)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||
set(CMAKE_CXX_EXTENSIONS False)
|
||||
|
||||
# TODO: Figure out how to avoid the terminfo check
|
||||
set(CMAKE_DISABLE_FIND_PACKAGE_CURL ON)
|
||||
set(CMAKE_DISABLE_FIND_PACKAGE_FFI ON)
|
||||
set(CMAKE_DISABLE_FIND_PACKAGE_LibEdit ON)
|
||||
set(CMAKE_DISABLE_FIND_PACKAGE_LibXml2 ON)
|
||||
set(CMAKE_DISABLE_FIND_PACKAGE_Terminfo ON)
|
||||
set(CMAKE_DISABLE_FIND_PACKAGE_ZLIB ON)
|
||||
set(CMAKE_DISABLE_FIND_PACKAGE_zstd ON)
|
||||
|
||||
find_package(LLVM REQUIRED CONFIG)
|
||||
find_program(CLANG_TIDY_EXE NAMES "clang-tidy-${LLVM_VERSION_MAJOR}" "clang-tidy" HINTS ${LLVM_TOOLS_BINARY_DIR})
|
||||
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
|
||||
|
|
Loading…
Reference in New Issue