Skip to content

Commit

Permalink
fix(vendor): import Homebrew's simdjson correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
strager committed Aug 18, 2024
1 parent a7ccbbf commit 503ac6d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vendor/simdjson.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ if (QUICK_LINT_JS_USE_BUNDLED_SIMDJSON)
)
else ()
find_package(simdjson REQUIRED)
if (TARGET simdjson::simdjson AND NOT TARGET simdjson)
# Support Homebrew's simdjson 3.10.0's simdjsonTargets.cmake which defines a
# simdjson::simdjson target but not a simdjson target.
add_library(simdjson ALIAS simdjson::simdjson)
endif ()
endif ()

# quick-lint-js finds bugs in JavaScript programs.
Expand Down

0 comments on commit 503ac6d

Please sign in to comment.