From cf33494f70ead7f05ccb15ab11f46f8b88418bb1 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Sat, 6 Jul 2024 09:33:54 +0900 Subject: [PATCH] Add target_include_directories() again --- cpp/cmake_modules/ThirdpartyToolchain.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpp/cmake_modules/ThirdpartyToolchain.cmake b/cpp/cmake_modules/ThirdpartyToolchain.cmake index 44e1764edd316..8cb3ec83f57db 100644 --- a/cpp/cmake_modules/ThirdpartyToolchain.cmake +++ b/cpp/cmake_modules/ThirdpartyToolchain.cmake @@ -4524,6 +4524,9 @@ function(build_orc) set(PROTOBUF_HOME ${Protobuf_ROOT} CACHE STRING "" FORCE) + # ORC uses this. + target_include_directories(${ARROW_PROTOBUF_LIBPROTOC} + INTERFACE "${PROTOBUF_INCLUDE_DIR}") set(PROTOBUF_EXECUTABLE ${ARROW_PROTOBUF_PROTOC}) set(PROTOBUF_LIBRARY ${ARROW_PROTOBUF_LIBPROTOBUF}) set(PROTOC_LIBRARY ${ARROW_PROTOBUF_LIBPROTOC})