Skip to content

Commit

Permalink
Fix duplicate include error if clang-tidy helper file already exists (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
fktn-k authored Nov 13, 2024
1 parent 5f59b13 commit f121341
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tool/clang_tidy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ message(STATUS "Found clang-tidy. version: ${CLANG_TIDY_VERSION} path: ${CLANG_T
####################################

set(HELPER_FILE_PATH "${CMAKE_CURRENT_BINARY_DIR}/clang_tidy_helper.cpp")
# clear the contents written previously to the file.
file(WRITE ${HELPER_FILE_PATH} "")

file(GLOB_RECURSE SRC_FILES ${PROJECT_SOURCE_DIR}/include/fkYAML/*.hpp)
foreach(SRC_FILE ${SRC_FILES})
file(RELATIVE_PATH REL_SRC_FILE "${PROJECT_SOURCE_DIR}/include" ${SRC_FILE})
Expand Down

0 comments on commit f121341

Please sign in to comment.