cyb70289 commented on a change in pull request #12354: URL: https://github.com/apache/arrow/pull/12354#discussion_r802212645
########## File path: cpp/examples/arrow/CMakeLists.txt ########## @@ -84,6 +84,24 @@ if(ARROW_FLIGHT) EXTRA_SOURCES "${CMAKE_CURRENT_BINARY_DIR}/helloworld.pb.cc" "${CMAKE_CURRENT_BINARY_DIR}/helloworld.grpc.pb.cc") + + if(ARROW_FLIGHT_SQL) + if(ARROW_GRPC_USE_SHARED) + set(FLIGHT_SQL_EXAMPLES_LINK_LIBS arrow_flight_sql_shared) + else() + set(FLIGHT_SQL_EXAMPLES_LINK_LIBS arrow_flight_sql_static) + endif() + + add_arrow_example(flight_sql_example Review comment: Looks we prefer `-` for executable names, `_` for source names. Change the exec name to `flight-sql-example`? **Update:** `add_arrow_test` replaces underscores with hyphens [1], but `add_arrow_example` does not. Is it intended? [1] https://github.com/apache/arrow/blob/master/cpp/cmake_modules/BuildUtils.cmake#L693 -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org