pitrou commented on pull request #12465:
URL: https://github.com/apache/arrow/pull/12465#issuecomment-1064092434


   @lidavidm This patch fixes the issue for me:
   ```diff
   diff --git a/cpp/src/arrow/flight/CMakeLists.txt 
b/cpp/src/arrow/flight/CMakeLists.txt
   index 6b19d3079..c735c2cdb 100644
   --- a/cpp/src/arrow/flight/CMakeLists.txt
   +++ b/cpp/src/arrow/flight/CMakeLists.txt
   @@ -56,6 +56,11 @@ else()
      endif()
    endif()
    
   +# Needed for Flight SQL and integration
   +set(ARROW_FLIGHT_TEST_LINK_LIBS
   +    ${ARROW_FLIGHT_TEST_LINK_LIBS}
   +    PARENT_SCOPE)
   +
    # TODO(wesm): Protobuf shared vs static linking
    
    set(FLIGHT_PROTO_PATH "${ARROW_SOURCE_DIR}/../format")
   diff --git a/cpp/src/arrow/flight/integration_tests/CMakeLists.txt 
b/cpp/src/arrow/flight/integration_tests/CMakeLists.txt
   index 3a878d7f3..9a742ce38 100644
   --- a/cpp/src/arrow/flight/integration_tests/CMakeLists.txt
   +++ b/cpp/src/arrow/flight/integration_tests/CMakeLists.txt
   @@ -23,14 +23,13 @@ if(ARROW_FLIGHT_TEST_LINKAGE STREQUAL "static")
          arrow_flight_testing_static
          arrow_flight_sql_static
          ${ARROW_FLIGHT_STATIC_LINK_LIBS}
   -      ${ARROW_TEST_LINK_LIBS})
   +      ${ARROW_FLIGHT_TEST_LINK_LIBS})
    else()
      set(ARROW_FLIGHT_TEST_LINK_LIBS
          arrow_flight_shared
          arrow_flight_testing_shared
          arrow_flight_sql_shared
   -      ${ARROW_TEST_LINK_LIBS}
   -      ${ARROW_FLIGHT_SQL_TEST_LINK_LIBS})
   +      ${ARROW_FLIGHT_TEST_LINK_LIBS})
    endif()
    
    add_executable(flight-test-integration-server test_integration_server.cc
   diff --git a/cpp/src/arrow/flight/sql/CMakeLists.txt 
b/cpp/src/arrow/flight/sql/CMakeLists.txt
   index 8c84ce8da..3c28e6859 100644
   --- a/cpp/src/arrow/flight/sql/CMakeLists.txt
   +++ b/cpp/src/arrow/flight/sql/CMakeLists.txt
   @@ -58,12 +58,11 @@ add_arrow_lib(arrow_flight_sql
                  arrow_flight_static)
    
    if(ARROW_FLIGHT_TEST_LINKAGE STREQUAL "static")
   -  set(ARROW_FLIGHT_SQL_TEST_LINK_LIBS
   -      arrow_flight_sql_static arrow_flight_testing_static
   -      ${ARROW_FLIGHT_STATIC_LINK_LIBS} ${ARROW_TEST_LINK_LIBS})
   +  set(ARROW_FLIGHT_SQL_TEST_LINK_LIBS arrow_flight_sql_static
   +                                      ${ARROW_FLIGHT_TEST_LINK_LIBS})
    else()
   -  set(ARROW_FLIGHT_SQL_TEST_LINK_LIBS arrow_flight_sql_shared 
arrow_flight_testing_shared
   -                                      ${ARROW_TEST_LINK_LIBS})
   +  set(ARROW_FLIGHT_SQL_TEST_LINK_LIBS arrow_flight_sql_shared
   +                                      ${ARROW_FLIGHT_TEST_LINK_LIBS})
    endif()
    
    # Build test server for unit tests
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to