+ if (${CLANG_TIDY_PATH} STREQUAL CLANG_TIDY_PATH-NOTFOUND)
+ message(WARNING "EvtGen: clang-tidy not found, disabling checks during build")
+ unset(CMAKE_CXX_CLANG_TIDY)
+ else()
+ # NB have to have these two separate set commands (rather than doing one before the if and then doing a list append) because of the FORCE
+ if (EVTGEN_CLANG_TIDY_FIX)
+ set(CMAKE_CXX_CLANG_TIDY ${CLANG_TIDY_PATH} --checks=-*,${EVTGEN_CLANG_TIDY_CHECKS} --fix CACHE STRING "Used to set the CXX_CLANG_TIDY property on each target" FORCE)
+ else()
+ set(CMAKE_CXX_CLANG_TIDY ${CLANG_TIDY_PATH} --checks=-*,${EVTGEN_CLANG_TIDY_CHECKS} CACHE STRING "Used to set the CXX_CLANG_TIDY property on each target" FORCE)