Skip to content

Commit

Permalink
Fix clang-tidy include.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonenz committed Oct 22, 2024
1 parent 7d9c8c4 commit 4da650b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ if (CLANG_TIDY)
get_target_property(FREERTOS_KERNEL_CONFIG_INCLUDE_DIRS freertos_config INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(FREERTOS_KERNEL_INCLUDE_DIRS freertos_kernel_include INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(FREERTOS_KERNEL_PORT_INCLUDE_DIRS freertos_kernel_port_headers INTERFACE_INCLUDE_DIRECTORIES)
file(GENERATE OUTPUT port_include_dirs.txt CONTENT "${FREERTOS_KERNEL_PORT_INCLUDE_DIRS}")
file(READ ${CMAKE_BINARY_DIR}/port_include_dirs.txt FREERTOS_KERNEL_PORT_INCLUDE_DIRS)

add_custom_target( clang-tidy
COMMAND clang-tidy
Expand All @@ -83,7 +81,7 @@ if (CLANG_TIDY)
-I ${FREERTOS_CPP_PATH}/include
-I ${FREERTOS_KERNEL_CONFIG_INCLUDE_DIRS}
-I ${FREERTOS_KERNEL_INCLUDE_DIRS}
-I ${FREERTOS_KERNEL_PORT_INCLUDE_DIRS}
-I "$<JOIN:${FREERTOS_KERNEL_PORT_INCLUDE_DIRS},$<SEMICOLON>>"
)
endif()

Expand Down

0 comments on commit 4da650b

Please sign in to comment.