Skip to content

Commit 503ac6d

Browse files
committed
fix(vendor): import Homebrew's simdjson correctly
1 parent a7ccbbf commit 503ac6d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vendor/simdjson.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ if (QUICK_LINT_JS_USE_BUNDLED_SIMDJSON)
4949
)
5050
else ()
5151
find_package(simdjson REQUIRED)
52+
if (TARGET simdjson::simdjson AND NOT TARGET simdjson)
53+
# Support Homebrew's simdjson 3.10.0's simdjsonTargets.cmake which defines a
54+
# simdjson::simdjson target but not a simdjson target.
55+
add_library(simdjson ALIAS simdjson::simdjson)
56+
endif ()
5257
endif ()
5358

5459
# quick-lint-js finds bugs in JavaScript programs.

0 commit comments

Comments
 (0)