Skip to content

Commit

Permalink
Install RHEL libs
Browse files Browse the repository at this point in the history
  • Loading branch information
fpetrini15 committed Nov 8, 2024
1 parent 9b2b42d commit d2230de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ FetchContent_Declare(
set(TRITON_THIRD_PARTY_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/third-party)
FetchContent_MakeAvailable(repo-third-party)

# Some libs are installed to ${TRITON_THIRD_PARTY_INSTALL_PREFIX}/{LIB}/lib64 instead
# of ${TRITON_THIRD_PARTY_INSTALL_PREFIX}/{LIB}/lib on Centos
# Some libs are installed to ${TRITON_THIRD_PARTY_INSTALL_PREFIX}/lib64 instead
# of ${TRITON_THIRD_PARTY_INSTALL_PREFIX}/lib on Centos
set (LIB_DIR "lib")
if(LINUX)
file(STRINGS "/etc/os-release" DISTRO_ID_LIKE REGEX "ID_LIKE")
Expand Down Expand Up @@ -157,6 +157,7 @@ if(TRITON_ENABLE_CC_HTTP OR TRITON_ENABLE_CC_GRPC)
-DTRITON_ENABLE_GPU:BOOL=${TRITON_ENABLE_GPU}
-DTRITON_ENABLE_ZLIB:BOOL=${TRITON_ENABLE_ZLIB}
-DTRITON_MIN_CXX_STANDARD:STRING=${TRITON_MIN_CXX_STANDARD}
-DLIB_DIR:STRING=${LIB_DIR}
-DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}
-DCMAKE_INSTALL_PREFIX:PATH=${TRITON_INSTALL_PREFIX}
DEPENDS ${_cc_client_depends}
Expand Down
12 changes: 6 additions & 6 deletions src/c++/library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,12 @@ if(TRITON_ENABLE_CC_GRPC)
if (NOT WIN32)
install(
DIRECTORY
${CMAKE_CURRENT_BINARY_DIR}/../../third-party/curl/lib/
${CMAKE_CURRENT_BINARY_DIR}/../../third-party/grpc/lib/
${CMAKE_CURRENT_BINARY_DIR}/../../third-party/protobuf/lib/
${CMAKE_CURRENT_BINARY_DIR}/../../third-party/c-ares/lib/
${CMAKE_CURRENT_BINARY_DIR}/../../third-party/absl/lib/
${CMAKE_CURRENT_BINARY_DIR}/../../third-party/re2/lib/
${CMAKE_CURRENT_BINARY_DIR}/../../third-party/curl/${LIB_DIR}/
${CMAKE_CURRENT_BINARY_DIR}/../../third-party/grpc/${LIB_DIR}/
${CMAKE_CURRENT_BINARY_DIR}/../../third-party/protobuf/${LIB_DIR}/
${CMAKE_CURRENT_BINARY_DIR}/../../third-party/c-ares/${LIB_DIR}/
${CMAKE_CURRENT_BINARY_DIR}/../../third-party/absl/${LIB_DIR}/
${CMAKE_CURRENT_BINARY_DIR}/../../third-party/re2/${LIB_DIR}/
DESTINATION ${CMAKE_INSTALL_LIBDIR}
FILES_MATCHING
PATTERN "*\.a"
Expand Down

0 comments on commit d2230de

Please sign in to comment.