xo-object: nix build requires specific include paths

This commit is contained in:
Roland Conybeare 2026-02-27 11:34:46 +11:00
commit dedb0aaa1b
4 changed files with 16 additions and 9 deletions

View file

@ -2,7 +2,10 @@
include(CMakeFindDependencyMacro)
# reminder: deps here must also appear in xo-object/src/object/CMakeLists.txt
find_dependency(xo_alloc)
find_dependency(xo_reflectutil)
find_dependency(xo_unit)
find_dependency(callback)
#find_dependency(xo_alloc)
#find_dependency(xo_flatstring)
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
check_required_components("@PROJECT_NAME@")

View file

@ -4,8 +4,8 @@
*/
#include "Boolean.hpp"
#include "TaggedPtr.hpp"
#include "xo/reflect/Reflect.hpp"
#include <xo/reflect/TaggedPtr.hpp>
#include <xo/reflect/Reflect.hpp>
#include <array>
#include <cassert>
#include <cstddef>

View file

@ -8,8 +8,8 @@
#include "Float.hpp"
#include "Boolean.hpp"
#include "String.hpp"
#include "TaggedPtr.hpp"
#include "xo/alloc/Blob.hpp"
#include <xo/reflect/TaggedPtr.hpp>
#include <xo/alloc/Blob.hpp>
namespace xo {
using xo::reflect::Reflect;
@ -145,6 +145,8 @@ namespace xo {
// still don't have good solver for this yet
assert(false);
return TaggedPtr::universal_null();
}
}

View file

@ -5,10 +5,12 @@
#include "String.hpp"
#include "GC.hpp"
#include "TaggedPtr.hpp"
#include "xo/reflect/Reflect.hpp"
#include "xo/indentlog/print/quoted.hpp"
#include <bsd/string.h>
#include <xo/reflect/TaggedPtr.hpp>
#include <xo/reflect/Reflect.hpp>
#include <xo/indentlog/print/quoted.hpp>
#ifdef __linux__
# include <bsd/string.h>
#endif
#include <cstddef>
#include <cstring>
#include <cassert>