From 503ac6d91d707c7f6685d8fbbe5fa33bbd35d7b4 Mon Sep 17 00:00:00 2001 From: "Matthew \"strager\" Glazar" Date: Sat, 17 Aug 2024 20:56:54 -0400 Subject: [PATCH] fix(vendor): import Homebrew's simdjson correctly --- vendor/simdjson.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vendor/simdjson.cmake b/vendor/simdjson.cmake index 7afff7ab96..72f2f37be4 100644 --- a/vendor/simdjson.cmake +++ b/vendor/simdjson.cmake @@ -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.