disable clang tidy by default during build

master
Andre Puschmann 6 years ago
parent 463b00d82d
commit 22503541b1

@ -77,6 +77,7 @@ option(BUILD_STATIC "Attempt to statically link external deps" OFF)
option(RPATH "Enable RPATH" OFF) option(RPATH "Enable RPATH" OFF)
option(ENABLE_ASAN "Enable gcc/clang address sanitizer" OFF) option(ENABLE_ASAN "Enable gcc/clang address sanitizer" OFF)
option(ENABLE_MSAN "Enable clang memory sanitizer" OFF) option(ENABLE_MSAN "Enable clang memory sanitizer" OFF)
option(ENABLE_TIDY "Enable clang tidy" OFF)
option(USE_LTE_RATES "Use standard LTE sampling rates" OFF) option(USE_LTE_RATES "Use standard LTE sampling rates" OFF)
@ -362,6 +363,7 @@ message(STATUS "CMAKE_CXX_FLAGS is ${CMAKE_CXX_FLAGS}")
######################################################################## ########################################################################
# clang-tidy check # clang-tidy check
######################################################################## ########################################################################
if(ENABLE_TIDY)
find_program( find_program(
CLANG_TIDY_BIN CLANG_TIDY_BIN
NAMES "clang-tidy" NAMES "clang-tidy"
@ -373,7 +375,7 @@ else()
message(STATUS "clang-tidy found: ${CLANG_TIDY_BIN}") message(STATUS "clang-tidy found: ${CLANG_TIDY_BIN}")
set(DO_CLANG_TIDY "${CLANG_TIDY_BIN}" "-checks=*,-clang-analyzer-alpha.*,-modernize-*,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-cppcoreguidelines-pro-bounds-constant-array-index") set(DO_CLANG_TIDY "${CLANG_TIDY_BIN}" "-checks=*,-clang-analyzer-alpha.*,-modernize-*,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-cppcoreguidelines-pro-bounds-constant-array-index")
endif() endif()
endif(ENABLE_TIDY)
######################################################################## ########################################################################
# Create uninstall targets # Create uninstall targets

Loading…
Cancel
Save