fix weaseljson public header include path

weaseljson installs its public header as

  ${prefix}/include/weaseljson/weaseljson.h

and exports INTERFACE_INCLUDE_DIRECTORIES as

  ${prefix}/include/weaseljson

so consumers must include the header as <weaseljson.h>. The previous
weaseldb code used <weaseljson/weaseljson.h>, which only worked when a
system copy of weaseljson happened to be reachable via the compiler's
default include search path (e.g. /usr/include). In CI, where weaseljson
is built and installed to a non-system prefix, the build failed with:

  fatal error: 'weaseljson/weaseljson.h' file not found

Use the include path advertised by the weaseljson CMake target.
This commit is contained in:
2026-06-30 16:15:18 -04:00
parent 7ffecdda7d
commit ac491c2174
+1 -1
View File
@@ -3,7 +3,7 @@
#include <memory> #include <memory>
#include <simdutf.h> #include <simdutf.h>
#include <weaseljson/weaseljson.h> #include <weaseljson.h>
#include "commit_request_parser.hpp" #include "commit_request_parser.hpp"
#include "json_token_enum.hpp" #include "json_token_enum.hpp"