[fix](third-party) Pass search paths of dependencies to CLucene explicitly (#15959)
When building CLucene, CMake may find the wrong Boost and zlib. We should pass the search paths to the build command for CLucene explicitly to find the correct dependencies.
This commit is contained in:
14
thirdparty/build-thirdparty.sh
vendored
14
thirdparty/build-thirdparty.sh
vendored
@ -1566,9 +1566,17 @@ build_clucene() {
|
||||
cd "${BUILD_DIR}"
|
||||
rm -rf CMakeCache.txt CMakeFiles/
|
||||
|
||||
${CMAKE_CMD} -G "${GENERATOR}" -DCMAKE_INSTALL_PREFIX="${TP_INSTALL_DIR}" -DBUILD_STATIC_LIBRARIES=ON \
|
||||
-DBUILD_SHARED_LIBRARIES=OFF -DCMAKE_CXX_FLAGS="-fno-omit-frame-pointer ${warning_narrowing}" \
|
||||
-DUSE_STAT64=0 -DUSE_AVX2="${USE_AVX2}" -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" -DBUILD_CONTRIBS_LIB=ON ..
|
||||
${CMAKE_CMD} -G "${GENERATOR}" \
|
||||
-DCMAKE_INSTALL_PREFIX="${TP_INSTALL_DIR}" \
|
||||
-DBUILD_STATIC_LIBRARIES=ON \
|
||||
-DBUILD_SHARED_LIBRARIES=OFF \
|
||||
-DBOOST_ROOT="${TP_INSTALL_DIR}" \
|
||||
-DZLIB_ROOT="${TP_INSTALL_DIR}" \
|
||||
-DCMAKE_CXX_FLAGS="-fno-omit-frame-pointer ${warning_narrowing}" \
|
||||
-DUSE_STAT64=0 \
|
||||
-DUSE_AVX2="${USE_AVX2}" \
|
||||
-DCMAKE_BUILD_TYPE="${BUILD_TYPE}" \
|
||||
-DBUILD_CONTRIBS_LIB=ON ..
|
||||
${BUILD_SYSTEM} -j "${PARALLEL}"
|
||||
${BUILD_SYSTEM} install
|
||||
|
||||
|
||||
Reference in New Issue
Block a user