mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
a6a3a787ec
* add cmake support for clib and remove unused variables * add targets for code analysis * add wall to all compilers and add utf-8 options for msvc
10 lines
428 B
CMake
10 lines
428 B
CMake
find_package(ClangTools QUIET)
|
|
if(clang-tidy_FOUND AND run-clang-tidy_FOUND AND NOT TARGET do_run_clang_tidy)
|
|
add_custom_target(
|
|
do_run_clang_tidy
|
|
COMMAND ClangTools::run-clang-tidy -clang-tidy-binary "$<TARGET_FILE:ClangTools::clang-tidy>" -p ${CMAKE_BINARY_DIR} "-quiet" > ./run-clang-tidy.txt
|
|
DEPENDS ${CMAKE_BINARY_DIR}/compile_commands.json
|
|
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
|
)
|
|
endif()
|