This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 3a1ec99853 ARROW-17013: [CI][C++] Fix arrow build for Ubuntu CPP 22.04 
(#13547)
3a1ec99853 is described below

commit 3a1ec998539cd6da1bccb7f06e68448846b6e318
Author: Raúl Cumplido <[email protected]>
AuthorDate: Fri Jul 8 22:54:51 2022 +0200

    ARROW-17013: [CI][C++] Fix arrow build for Ubuntu CPP 22.04 (#13547)
    
    Authored-by: Raúl Cumplido <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 cpp/src/arrow/flight/sql/CMakeLists.txt | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/cpp/src/arrow/flight/sql/CMakeLists.txt 
b/cpp/src/arrow/flight/sql/CMakeLists.txt
index 0c789fd71c..f7312de23a 100644
--- a/cpp/src/arrow/flight/sql/CMakeLists.txt
+++ b/cpp/src/arrow/flight/sql/CMakeLists.txt
@@ -119,8 +119,9 @@ if(ARROW_BUILD_TESTS OR ARROW_BUILD_EXAMPLES)
                                                     ${GFLAGS_LIBRARIES})
 
   if(ARROW_FLIGHT_TEST_LINKAGE STREQUAL "static" AND ARROW_BUILD_STATIC)
-    target_compile_definitions(flight_sql_test
-                               flight-sql-test-server flight-sql-test-app
-                               PUBLIC ARROW_FLIGHT_STATIC 
ARROW_FLIGHT_SQL_STATIC)
+    foreach(TEST_TARGET arrow-flight-sql-test flight-sql-test-server 
flight-sql-test-app)
+      target_compile_definitions(${TEST_TARGET} PUBLIC ARROW_FLIGHT_STATIC
+                                                       ARROW_FLIGHT_SQL_STATIC)
+    endforeach()
   endif()
 endif()

Reply via email to