Meta: CMakeLists invoke check_style.py

This commit is contained in:
luozhiya 2024-07-07 20:39:49 +08:00 committed by Andrew Kaster
parent 0b34a60307
commit 9ced3ec84d
Notes: sideshowbarker 2024-07-16 20:12:13 +09:00

View file

@ -89,7 +89,10 @@ add_custom_target(lint-shell-scripts
USES_TERMINAL
)
add_custom_target(check-style
COMMAND "${ladybird_SOURCE_DIR}/Meta/check-style.sh"
find_package(Python3 COMPONENTS Interpreter)
if (Python3_FOUND)
add_custom_target(check-style
COMMAND ${Python3_EXECUTABLE} "${ladybird_SOURCE_DIR}/Meta/check-style.py"
USES_TERMINAL
)
)
endif()