Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix Meson include directories #532

Merged
merged 13 commits into from
Jun 21, 2024
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ else
libtype = 'library'
endif

subdir('src')
subdir('src/nanoarrow')
incdir = include_directories('src/')

nanoarrow_lib = build_target(
Expand Down
2 changes: 1 addition & 1 deletion src/meson.build → src/nanoarrow/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ conf_data.set('NANOARROW_VERSION_MAJOR', ver_major)
conf_data.set('NANOARROW_VERSION_MINOR', ver_minor)
conf_data.set('NANOARROW_VERSION_PATCH', ver_patch)

configure_file(input: 'nanoarrow/nanoarrow_config.h.in',
configure_file(input: 'nanoarrow_config.h.in',
output: 'nanoarrow_config.h',
configuration: conf_data)
2 changes: 1 addition & 1 deletion src/nanoarrow/nanoarrow_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <stdint.h>
#include <string.h>

#include "nanoarrow_config.h"
#include <nanoarrow/nanoarrow_config.h>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#include <nanoarrow/nanoarrow_config.h>
#include "nanoarrow/nanoarrow_config.h"

(Perhaps less correct, but more consistent with all the other places we currently do this)


#if defined(NANOARROW_DEBUG) && !defined(NANOARROW_PRINT_AND_DIE)
#include <stdio.h>
Expand Down
Loading