mirror of https://github.com/libp2p/cpp-libp2p.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
332 B
13 lines
332 B
5 years ago
|
if(NOT CLANG_TIDY_BIN)
|
||
|
find_program(CLANG_TIDY_BIN clang-tidy)
|
||
|
endif()
|
||
|
|
||
|
if(NOT CLANG_TIDY_BIN)
|
||
|
message(FATAL_ERROR "clang-tidy is not installed. Aborting...")
|
||
|
else()
|
||
|
message(STATUS "clang-tidy has been found: ${CLANG_TIDY_BIN}")
|
||
|
endif()
|
||
|
|
||
|
set(CMAKE_C_CLANG_TIDY ${CLANG_TIDY_BIN})
|
||
|
set(CMAKE_CXX_CLANG_TIDY ${CLANG_TIDY_BIN})
|