File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ if (NOT TileDB_FOUND)
52
52
endif ()
53
53
find_package (TileDB REQUIRED )
54
54
set (TILEDB_DOWNLOADED TRUE )
55
+ set (BUILD_WHEEL TRUE )
55
56
else ()
56
57
message (STATUS "Found external TileDB core library" )
57
58
endif ()
Original file line number Diff line number Diff line change @@ -39,15 +39,23 @@ endif()
39
39
install (TARGETS main DESTINATION tiledb )
40
40
41
41
if (TILEDB_DOWNLOADED )
42
- message (STATUS "Adding \" libtiledb\" into install group" )
43
-
44
- install (IMPORTED_RUNTIME_ARTIFACTS TileDB::tiledb_shared DESTINATION tiledb )
42
+ if (BUILD_WHEEL )
43
+ message (STATUS "Wheel build: skipping install of libtiledb.so (auditwheel will vendor it)" )
44
+ else ()
45
+ message (STATUS "System install: installing libtiledb.so into package" )
46
+ install (IMPORTED_RUNTIME_ARTIFACTS TileDB::tiledb_shared DESTINATION tiledb )
47
+ endif ()
45
48
46
49
if (APPLE )
47
50
set_target_properties (main PROPERTIES INSTALL_RPATH "@loader_path" )
48
51
elseif (UNIX )
49
52
set_target_properties (main PROPERTIES INSTALL_RPATH "\$ ORIGIN" )
50
53
endif ()
54
+
55
+ get_property (TILEDB_LOCATION TARGET TileDB::tiledb_shared PROPERTY LOCATION )
56
+ get_filename_component (TILEDB_LOCATION ${TILEDB_LOCATION} DIRECTORY )
57
+ message (STATUS "Setting RPATH for targets \" main\" and \" libtiledb\" to ${TILEDB_LOCATION} " )
58
+ set_target_properties (main PROPERTIES INSTALL_RPATH ${TILEDB_LOCATION} )
51
59
else ()
52
60
# If using external TileDB core library force it to be linked at runtime using RPATH
53
61
get_property (TILEDB_LOCATION TARGET TileDB::tiledb_shared PROPERTY LOCATION )
You can’t perform that action at this time.
0 commit comments