Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
13
Src/external_dependencies/cpr/cmake/clang-tidy.cmake
Normal file
13
Src/external_dependencies/cpr/cmake/clang-tidy.cmake
Normal file
|
@ -0,0 +1,13 @@
|
|||
if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
|
||||
find_program(CLANG_TIDY_EXECUTABLE NAMES clang-tidy)
|
||||
mark_as_advanced(CLANG_TIDY_EXECUTABLE)
|
||||
|
||||
if (${CLANG_TIDY_EXECUTABLE})
|
||||
message(FATAL_ERROR "Clang-tidy not found")
|
||||
else()
|
||||
message(STATUS "Enabling clang-tidy")
|
||||
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_EXECUTABLE};-warnings-as-errors=*")
|
||||
endif()
|
||||
else()
|
||||
message(FATAL_ERROR "Clang-tidy is not supported when building for windows")
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue