Skip to content

Commit

Permalink
Fix find command
Browse files Browse the repository at this point in the history
  • Loading branch information
markkohdev committed Mar 30, 2024
1 parent 83815ba commit 0474c19
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 247 deletions.
6 changes: 3 additions & 3 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ add_subdirectory(include)
add_subdirectory(src)
add_subdirectory(test)

# Define the command
set(FIND_COMMAND find .. -type d -path ./include -prune -o -type d -path ../python/.tox -prune -o -type f -name "*.cpp" -o -name "*.h" -print)
set(CHECK_FORMAT_COMMAND clang-format --dry-run -i)
# Define our find command with any appropriate directory exclusions (add another with `-o -path <PATH> -prune`)
set(FIND_COMMAND find .. -path ../cpp/include -prune -o -path ../cpp/CMakeFiles -prune -o -path ../python/.tox -prune -o -name "*.cpp" -print -o -name "*.h" -type f -print)
set(CHECK_FORMAT_COMMAND clang-format --verbose --dry-run -i)
set(FORMAT_COMMAND clang-format --verbose -i)

# Check formatting only
Expand Down
Loading

0 comments on commit 0474c19

Please sign in to comment.