Skip to content

Commit

Permalink
Remove python check in 'clang_tidy.cmake'
Browse files Browse the repository at this point in the history
  • Loading branch information
NUCLEAR-BOMB committed Nov 3, 2023
1 parent 6e32a30 commit 9e79556
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmake/clang_tidy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ function(add_clang_tidy_target name)
message(WARNING "[clang-tidy] Error with code '${status_code}' occurred during downloading 'run-clang-tidy.py': ${error_msg}")
return()
endif()
find_package(Python 3 QUIET)
if (NOT Python_FOUND)
message(WARNING "[clang-tidy] Python3 not found")
return()
endif()
#find_package(Python 3 QUIET)
#if (NOT Python_FOUND)
# message(WARNING "[clang-tidy] Python3 not found")
# return()
#endif()
find_program(clang_tidy_binary clang-tidy)
if (clang_tidy_binary STREQUAL "clang_tidy_binary-NOTFOUND")
message(WARNING "[clang-tidy] clang-tidy not found")
Expand All @@ -29,7 +29,7 @@ function(add_clang_tidy_target name)

set(clang_tidy_config "${PROJECT_SOURCE_DIR}/.clang-tidy")
add_custom_target(${name}
COMMAND "${Python_EXECUTABLE}" "${run_clang_tidy}" -quiet -p "${PROJECT_BINARY_DIR}" -use-color
COMMAND "python" "${run_clang_tidy}" -quiet -p "${PROJECT_BINARY_DIR}" -use-color
-clang-tidy-binary "${clang_tidy_binary}" -config-file "${clang_tidy_config}"
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}" VERBATIM
DEPENDS "${run_clang_tidy}"
Expand Down

0 comments on commit 9e79556

Please sign in to comment.