From f9170d13cc288f4876a7477fc1e52872dfbe1dd9 Mon Sep 17 00:00:00 2001 From: vansangpfiev Date: Thu, 23 May 2024 19:43:43 +0700 Subject: [PATCH] f:ff --- third-party/CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt index d3dbac7..24665c8 100644 --- a/third-party/CMakeLists.txt +++ b/third-party/CMakeLists.txt @@ -11,9 +11,6 @@ set(THIRD_PARTY_INSTALL_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../build_deps/_install) if(CMAKE_SYSTEM_NAME STREQUAL "Linux") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") add_compile_options(-fPIC) - - set(CMAKE_INSTALL_RPATH "${THIRD_PARTY_INSTALL_PATH}/lib") - set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) endif() ExternalProject_Add( @@ -162,7 +159,7 @@ if (UNIX) # APPLE and LINUX Python3 URL https://www.python.org/ftp/python/3.10.4/Python-3.10.4.tgz PREFIX ${THIRD_PARTY_INSTALL_PATH} - CONFIGURE_COMMAND ${CMAKE_COMMAND} -E env LD_LIBRARY_PATH=${THIRD_PARTY_INSTALL_PATH}/$LD_LIBRARY_PATH ./configure --prefix= --enable-optimizations --with-ensurepip=install --enable-shared ${PYTHON_INSTALL_CONFIG_HOST} ${PYTHON_INSTALL_CONFIG_BUILD} ${PYTHON_INSTALL_CONFIG_SSL} + CONFIGURE_COMMAND ${CMAKE_COMMAND} -E env LD_LIBRARY_PATH=${THIRD_PARTY_INSTALL_PATH}:$LD_LIBRARY_PATH ./configure --prefix= --enable-optimizations --with-ensurepip=install --enable-shared ${PYTHON_INSTALL_CONFIG_HOST} ${PYTHON_INSTALL_CONFIG_BUILD} ${PYTHON_INSTALL_CONFIG_SSL} BUILD_COMMAND make -j12 INSTALL_COMMAND make install BUILD_IN_SOURCE 1