File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ function(sourcemeta_target_clang_tidy)
77 # given that the LLVM formula won't symlink `clang-tidy`
88 # to any available path by default.
99 if (APPLE )
10- if (IS_DIRECTORY "/opt/homebrew/Cellar/llvm " )
11- set (HOMEBREW_LLVM "/opt/homebrew/Cellar/llvm " )
12- elseif (IS_DIRECTORY "/usr/local/Cellar/llvm " )
13- set (HOMEBREW_LLVM "/opt/local/Cellar/llvm " )
10+ if (IS_DIRECTORY "/opt/homebrew/Cellar" )
11+ set (HOMEBREW_CELLAR "/opt/homebrew/Cellar" )
12+ elseif (IS_DIRECTORY "/usr/local/Cellar" )
13+ set (HOMEBREW_CELLAR "/opt/local/Cellar" )
1414 endif ()
15- if (HOMEBREW_LLVM )
16- file (GLOB llvm_version_paths LIST_DIRECTORIES true "${HOMEBREW_LLVM} /*" )
15+ if (HOMEBREW_CELLAR )
16+ file (GLOB llvm_version_paths LIST_DIRECTORIES true "${HOMEBREW_CELLAR} /llvm* /*" )
1717 foreach (llvm_version_path ${llvm_version_paths} )
1818 list (APPEND CLANG_TIDY_FIND_PATHS "${llvm_version_path} /bin" )
1919 endforeach ()
You can’t perform that action at this time.
0 commit comments