diff --git a/check_header.py b/check-header.py similarity index 100% rename from check_header.py rename to check-header.py diff --git a/clang-tidy-wrap b/clang-tidy-wrap.py similarity index 100% rename from clang-tidy-wrap rename to clang-tidy-wrap.py diff --git a/cmake/build.cmake b/cmake/build.cmake index 6eb6e67..67f47ca 100644 --- a/cmake/build.cmake +++ b/cmake/build.cmake @@ -24,7 +24,7 @@ endif () if (DEMO_ENABLE_CLANG_TIDY) find_program(CLANG_TIDY_EXE NAMES "clang-tidy" REQUIRED) list(TRANSFORM EXTRA_CLANG_TIDY_COMPILER_FLAGS PREPEND "EXTRA_CLANG_TIDY_COMPILER_FLAGS=") - set(CLANG_TIDY_COMMAND "${CMAKE_SOURCE_DIR}/clang-tidy-wrap" "${CLANG_TIDY_EXE}" ${EXTRA_CLANG_TIDY_COMPILER_FLAGS}) + set(CLANG_TIDY_COMMAND "${CMAKE_SOURCE_DIR}/clang-tidy-wrap.py" "${CLANG_TIDY_EXE}" ${EXTRA_CLANG_TIDY_COMPILER_FLAGS}) endif () # function used to add a library with clang-tidy, sanitizers and coverage configure diff --git a/cmake/install.cmake b/cmake/install.cmake index f47f1f5..59ca1ea 100644 --- a/cmake/install.cmake +++ b/cmake/install.cmake @@ -53,7 +53,7 @@ endfunction() function(demo_check_public_header) _demo_list_public_header(${CMAKE_SOURCE_DIR} HEADERS) add_custom_target(check_public_header - COMMAND ${PROJECT_SOURCE_DIR}/check_header.py + COMMAND ${PROJECT_SOURCE_DIR}/check-header.py ${PROJECT_SOURCE_DIR}/src ${HEADERS} WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}