Print out version of clang-tidy

This commit is contained in:
derselbst 2019-08-08 19:23:16 +02:00
parent 743601930a
commit b87d8b96ef

View file

@ -352,8 +352,9 @@ if ( enable-profiling )
DOC "Path to clang-tidy executable" ) DOC "Path to clang-tidy executable" )
if ( CLANG_TIDY ) if ( CLANG_TIDY )
message ( STATUS "Found clang-tidy" ) message ( STATUS "Found clang-tidy at ${CLANG_TIDY}" )
set ( CMAKE_C_CLANG_TIDY "clang-tidy" ) execute_process ( COMMAND ${CLANG_TIDY} "--version" )
set ( CMAKE_C_CLANG_TIDY ${CLANG_TIDY} )
endif ( CLANG_TIDY ) endif ( CLANG_TIDY )
endif ( CMAKE_VERSION VERSION_GREATER "3.6.0" ) endif ( CMAKE_VERSION VERSION_GREATER "3.6.0" )