build: Fix check-format and clang-format paths
The check-format and clang-format targets were not adjusted when the
code was reorganized in commit 7f8282315e ("Restructure sources"). Fix
it to find the C sources that are now in the modules directory.
Signed-off-by: Matthias Blankertz <matthias@blankertz.org>
This commit is contained in:
@@ -54,9 +54,9 @@ add_subdirectory(modules/audiocore)
|
|||||||
|
|
||||||
add_custom_target(check-format
|
add_custom_target(check-format
|
||||||
find . -iname '*.[ch]' -exec clang-format -Werror --dry-run {} +
|
find . -iname '*.[ch]' -exec clang-format -Werror --dry-run {} +
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/src
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/modules
|
||||||
)
|
)
|
||||||
add_custom_target(clang-format
|
add_custom_target(clang-format
|
||||||
find . -iname '*.[ch]' -exec clang-format -i {} +
|
find . -iname '*.[ch]' -exec clang-format -i {} +
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/src
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/modules
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user