You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by we...@apache.org on 2018/12/04 15:37:46 UTC

[arrow] branch master updated: ARROW-3934: [Gandiva] Only add precompiled tests if ARROW_GANDIVA_BUILD_TESTS

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

wesm 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 4ac4eb5  ARROW-3934: [Gandiva] Only add precompiled tests if ARROW_GANDIVA_BUILD_TESTS
4ac4eb5 is described below

commit 4ac4eb569978b214e41c9d4254533b4b2ac09875
Author: Philipp Moritz <pc...@gmail.com>
AuthorDate: Tue Dec 4 09:37:39 2018 -0600

    ARROW-3934: [Gandiva] Only add precompiled tests if ARROW_GANDIVA_BUILD_TESTS
    
    Author: Philipp Moritz <pc...@gmail.com>
    
    Closes #3082 from pcmoritz/gandiva-precompiled-tests and squashes the following commits:
    
    f47a35695 <Philipp Moritz> only add precompiled tests if ARROW_GANDIVA_BUILD_TESTS
---
 cpp/src/gandiva/precompiled/CMakeLists.txt | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/cpp/src/gandiva/precompiled/CMakeLists.txt b/cpp/src/gandiva/precompiled/CMakeLists.txt
index a4414ca..46e80d5 100644
--- a/cpp/src/gandiva/precompiled/CMakeLists.txt
+++ b/cpp/src/gandiva/precompiled/CMakeLists.txt
@@ -52,10 +52,12 @@ add_custom_command(
 add_custom_target(precompiled ALL DEPENDS ${GANDIVA_BC_OUTPUT_PATH})
 
 # testing
-add_precompiled_unit_test(bitmap_test.cc bitmap.cc)
-add_precompiled_unit_test(epoch_time_point_test.cc)
-add_precompiled_unit_test(time_test.cc time.cc timestamp_arithmetic.cc ../context_helper.cc)
-add_precompiled_unit_test(hash_test.cc hash.cc)
-add_precompiled_unit_test(string_ops_test.cc string_ops.cc ../context_helper.cc)
-add_precompiled_unit_test(arithmetic_ops_test.cc arithmetic_ops.cc ../context_helper.cc)
-add_precompiled_unit_test(extended_math_ops_test.cc extended_math_ops.cc ../context_helper.cc)
+if (ARROW_GANDIVA_BUILD_TESTS)
+  add_precompiled_unit_test(bitmap_test.cc bitmap.cc)
+  add_precompiled_unit_test(epoch_time_point_test.cc)
+  add_precompiled_unit_test(time_test.cc time.cc timestamp_arithmetic.cc ../context_helper.cc)
+  add_precompiled_unit_test(hash_test.cc hash.cc)
+  add_precompiled_unit_test(string_ops_test.cc string_ops.cc ../context_helper.cc)
+  add_precompiled_unit_test(arithmetic_ops_test.cc arithmetic_ops.cc ../context_helper.cc)
+  add_precompiled_unit_test(extended_math_ops_test.cc extended_math_ops.cc ../context_helper.cc)
+endif()