From c80d0fd10ee3bc1ebcfb689dc505c813232b2738 Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Mon, 8 Jun 2026 22:57:14 +0100 Subject: [PATCH] Prefer simdjson from system if found MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The bundled version is quite old and fails to build on ubuntu 25.04 / g++14. Error was: simdjson/simdjson.cpp:16640:49: error: inlining failed in call to ‘always_inline’ ‘simdjson::error_code imdjson::fallback::{anonymous}::stage2::json_iterator::walk_document(V&) noexcept [with bool STREAMING = false; V = simdjson::fallback::{anonymous}::stage2::tape_builder]’: target specific option mismatch --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fe99d80f0..21448f655 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,10 @@ project ("vulkan_guide") find_package(Vulkan REQUIRED) +find_package(simdjson QUIET) +if (simdjson_FOUND) + set(FASTGLTF_DOWNLOAD_SIMDJSON OFF CACHE BOOL "" FORCE) +endif() add_subdirectory(third_party)