Skip to content

Commit 96dd314

Browse files
authored
fix(cmake): add CMAKE_INSTALL_LIBDIR for ext_gtest to fix lib64 path on aarch64 (#34793)
On CentOS 7 aarch64, GNUInstallDirs defaults to lib64, causing ext_gtest to install libraries to lib64/ while CMake expects lib/. This is consistent with how other ExternalProject targets already handle this (e.g. ext_libuv, ext_snappy, ext_rocksdb, etc.).
1 parent 124fc1e commit 96dd314

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/external.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ if(${BUILD_TEST}) # {
389389
PREFIX "${_base}"
390390
CMAKE_ARGS -DCMAKE_BUILD_TYPE:STRING=${TD_CONFIG_NAME}
391391
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:STRING=${_ins}
392+
CMAKE_ARGS -DCMAKE_INSTALL_LIBDIR:PATH=lib
392393
CMAKE_ARGS -Dgtest_force_shared_crt:BOOL=ON
393394
BUILD_COMMAND
394395
COMMAND "${CMAKE_COMMAND}" --build . --config "${TD_CONFIG_NAME}"

0 commit comments

Comments
 (0)