From 1acac9087bdc8396374f6717b871e8214256e16d Mon Sep 17 00:00:00 2001 From: vansangpfiev Date: Thu, 23 May 2024 19:53:36 +0700 Subject: [PATCH] f:ffff --- third-party/CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt index 24665c8..69fb675 100644 --- a/third-party/CMakeLists.txt +++ b/third-party/CMakeLists.txt @@ -144,14 +144,10 @@ if (UNIX) # APPLE and LINUX set(PYTHON_INSTALL_CONFIG_BUILD "--build=x86_64-apple-darwin") endif() set(PYTHON_INSTALL_CONFIG_SSL "--with-openssl=${THIRD_PARTY_INSTALL_PATH}") - set(CFS "") - set(LDS "") else() set(PYTHON_INSTALL_CONFIG_HOST "") set(PYTHON_INSTALL_CONFIG_BUILD "") set(PYTHON_INSTALL_CONFIG_SSL "--with-openssl=${THIRD_PARTY_INSTALL_PATH} --with-openssl-rpath=${THIRD_PARTY_INSTALL_PATH}") - set(CFS "CFLAGS=-I${THIRD_PARTY_INSTALL_PATH}/include") - set(LDS "LDFLAGS=-L${THIRD_PARTY_INSTALL_PATH}/lib") endif() # Download and install Python3 from source @@ -159,7 +155,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}/lib:$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