diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt index 1ed3274..b57d4c9 100644 --- a/third-party/CMakeLists.txt +++ b/third-party/CMakeLists.txt @@ -12,7 +12,7 @@ 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}") + set(CMAKE_INSTALL_RPATH "${THIRD_PARTY_INSTALL_PATH}/lib") set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) endif() @@ -164,7 +164,7 @@ if (UNIX) # APPLE and LINUX PREFIX ${THIRD_PARTY_INSTALL_PATH} CONFIGURE_COMMAND ${CMAKE_COMMAND} -E env ${CFS} ${LDS} ./configure --prefix= --enable-optimizations --with-ensurepip=install --enable-shared ${PYTHON_INSTALL_CONFIG_HOST} ${PYTHON_INSTALL_CONFIG_BUILD} ${PYTHON_INSTALL_CONFIG_SSL} BUILD_COMMAND ${CMAKE_COMMAND} -E env ${CFS} ${LDS} make -j12 - INSTALL_COMMAND make install + INSTALL_COMMAND ${CMAKE_COMMAND} -E env ${CFS} ${LDS} make install BUILD_IN_SOURCE 1 )