Skip to content

Commit 7554539

Browse files
committed
Twiddle rpath stuff, remove empty arrow_test_util module
1 parent 8cca41a commit 7554539

4 files changed

Lines changed: 12 additions & 18 deletions

File tree

cpp/CMakeLists.txt

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ if ("$ENV{CMAKE_EXPORT_COMPILE_COMMANDS}" STREQUAL "1")
3737
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
3838
endif()
3939

40-
if(APPLE)
41-
# In newer versions of CMake, this is the default setting
42-
set(CMAKE_MACOSX_RPATH 1)
43-
endif()
44-
4540
find_program(CCACHE_FOUND ccache)
4641
if(CCACHE_FOUND)
4742
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
@@ -344,7 +339,7 @@ if(ARROW_BUILD_TESTS)
344339
find_package(GTest REQUIRED)
345340
include_directories(SYSTEM ${GTEST_INCLUDE_DIR})
346341
ADD_THIRDPARTY_LIB(gtest
347-
STATIC_LIB ${GTEST_STATIC_LIB})
342+
STATIC_LIB ${GTEST_STATIC_LIB})
348343
endif()
349344

350345
## Google PerfTools
@@ -369,7 +364,7 @@ endif()
369364
############################################################
370365
# Linker setup
371366
############################################################
372-
set(ARROW_MIN_TEST_LIBS arrow arrow_test_main arrow_test_util ${ARROW_BASE_LIBS})
367+
set(ARROW_MIN_TEST_LIBS arrow arrow_test_main ${ARROW_BASE_LIBS})
373368
set(ARROW_TEST_LINK_LIBS ${ARROW_MIN_TEST_LIBS})
374369

375370
############################################################
@@ -469,13 +464,13 @@ if (APPLE)
469464
set_target_properties(arrow
470465
PROPERTIES
471466
BUILD_WITH_INSTALL_RPATH ON
472-
INSTALL_NAME_DIR "@rpath"
473-
)
467+
INSTALL_NAME_DIR "@rpath")
474468
endif()
475469
476470
set_target_properties(arrow
477471
PROPERTIES
478-
LIBRARY_OUTPUT_DIRECTORY "${BUILD_OUTPUT_ROOT_DIRECTORY}")
472+
LIBRARY_OUTPUT_DIRECTORY "${BUILD_OUTPUT_ROOT_DIRECTORY}"
473+
)
479474
target_link_libraries(arrow ${LIBARROW_LINK_LIBS})
480475
481476
add_subdirectory(src/arrow)

cpp/src/arrow/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ install(FILES
2727
# Unit tests
2828
#######################################
2929

30-
set(ARROW_TEST_LINK_LIBS arrow_test_util ${ARROW_MIN_TEST_LIBS})
30+
set(ARROW_TEST_LINK_LIBS ${ARROW_MIN_TEST_LIBS})
3131

3232
ADD_ARROW_TEST(array-test)

cpp/src/arrow/util/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,12 @@ if (ARROW_BUILD_TESTS)
3939
if (APPLE)
4040
target_link_libraries(arrow_test_main
4141
gtest
42-
arrow_test_util
4342
dl)
4443
set_target_properties(arrow_test_main
4544
PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
4645
else()
4746
target_link_libraries(arrow_test_main
4847
gtest
49-
arrow_test_util
5048
pthread
5149
dl
5250
)

python/CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ if (PYARROW_BUILD_TESTS)
333333
find_package(GTest REQUIRED)
334334
include_directories(SYSTEM ${GTEST_INCLUDE_DIR})
335335
ADD_THIRDPARTY_LIB(gtest
336-
STATIC_LIB ${GTEST_STATIC_LIB})
336+
STATIC_LIB ${GTEST_STATIC_LIB})
337337
endif()
338338

339339
## Arrow
@@ -400,6 +400,10 @@ endif (UNIX)
400400
# Subdirectories
401401
############################################################
402402
403+
if (UNIX)
404+
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
405+
endif()
406+
403407
add_subdirectory(src/pyarrow)
404408
add_subdirectory(src/pyarrow/util)
405409
@@ -429,9 +433,6 @@ endif()
429433
# Setup and build Cython modules
430434
############################################################
431435
432-
set(USE_RELATIVE_RPATH ON)
433-
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
434-
435436
set(CYTHON_EXTENSIONS
436437
array
437438
config
@@ -472,7 +473,7 @@ foreach(module ${CYTHON_EXTENSIONS})
472473
endwhile(${i} GREATER 0)
473474
474475
# for inplace development for now
475-
set(module_install_rpath "${CMAKE_SOURCE_DIR}/pyarrow/")
476+
# set(module_install_rpath "${CMAKE_SOURCE_DIR}/pyarrow/")
476477
477478
set_target_properties(${module_name} PROPERTIES
478479
INSTALL_RPATH ${module_install_rpath})

0 commit comments

Comments
 (0)