This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 0cf9e0358e GH-50300: [C++][CI] Update include to
generated/Message_generated.h so Meson is able to find (#50301)
0cf9e0358e is described below
commit 0cf9e0358eb07ca2f312581b430e87febd837592
Author: Raúl Cumplido <[email protected]>
AuthorDate: Wed Jul 1 02:39:04 2026 +0200
GH-50300: [C++][CI] Update include to generated/Message_generated.h so
Meson is able to find (#50301)
### Rationale for this change
The meson job is currently failing due to not finding header for include on
flatbuffers generated file. This works on CMake because we have:
`include_directories(src/generated)` and didn't failed previously on Meson
because we use the full `generated/xxx.h` path to the files on includes.
### What changes are included in this PR?
Add `generated` in the include so meson can also find the header without
requiring to include directory.
Remove `include_directories(src/generated)` on CMake to match Meson
configuration.
### Are these changes tested?
Yes, via CI
### Are there any user-facing changes?
No
* GitHub Issue: #50300
Authored-by: Raúl Cumplido <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
---
cpp/CMakeLists.txt | 3 ---
cpp/src/arrow/ipc/message_internal_test.cc | 2 +-
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
index 143f915b3d..e9f4b6d916 100644
--- a/cpp/CMakeLists.txt
+++ b/cpp/CMakeLists.txt
@@ -551,9 +551,6 @@ message(STATUS "CMAKE_CXX_FLAGS_${UPPERCASE_BUILD_TYPE}:
${CMAKE_CXX_FLAGS_${UPP
include_directories(${CMAKE_CURRENT_BINARY_DIR}/src)
include_directories(src)
-# Compiled flatbuffers files
-include_directories(src/generated)
-
#
# Visibility
#
diff --git a/cpp/src/arrow/ipc/message_internal_test.cc
b/cpp/src/arrow/ipc/message_internal_test.cc
index c2566a3979..90b091c6b6 100644
--- a/cpp/src/arrow/ipc/message_internal_test.cc
+++ b/cpp/src/arrow/ipc/message_internal_test.cc
@@ -24,7 +24,7 @@
#include <gtest/gtest.h>
-#include "Message_generated.h"
+#include "generated/Message_generated.h"
#include "arrow/buffer.h"
#include "arrow/io/memory.h"