forked from weaselab/weaseldb
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:
@@ -3,7 +3,7 @@
|
||||
#include <memory>
|
||||
|
||||
#include <simdutf.h>
|
||||
#include <weaseljson/weaseljson.h>
|
||||
#include <weaseljson.h>
|
||||
|
||||
#include "commit_request_parser.hpp"
|
||||
#include "json_token_enum.hpp"
|
||||
|
||||
Reference in New Issue
Block a user