diff --git a/CMakeLists.txt b/CMakeLists.txt index 83f9ca4c7dd09b428863f5492996f355fa4b0f07..75e4d7728967cfe595888f058a7845d161d56d29 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake") set(PADDLE_SERVING_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) set(PADDLE_SERVING_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}) SET(PADDLE_SERVING_INSTALL_DIR ${CMAKE_BINARY_DIR}/output) +SET(CMAKE_INSTALL_RPATH "\$ORIGIN" "${CMAKE_INSTALL_RPATH}") include(system) diff --git a/demo-serving/CMakeLists.txt b/demo-serving/CMakeLists.txt index d744d71e5eb84f68b6d39efd0ca435ff887dd03a..8e56b654e5cc165a0794fdcb9cf06cc7c194ab58 100644 --- a/demo-serving/CMakeLists.txt +++ b/demo-serving/CMakeLists.txt @@ -90,7 +90,7 @@ if (${WITH_MKL}) install(FILES ${CMAKE_BINARY_DIR}/third_party/install/Paddle/third_party/install/mklml/lib/libmklml_intel.so ${CMAKE_BINARY_DIR}/third_party/install/Paddle/third_party/install/mklml/lib/libiomp5.so - ${CMAKE_BINARY_DIR}/third_party/install/Paddle/third_party/install/mkldnn/lib/libmkldnn.so + ${CMAKE_BINARY_DIR}/third_party/install/Paddle/third_party/install/mkldnn/lib/libmkldnn.so.0 DESTINATION ${PADDLE_SERVING_INSTALL_DIR}/demo/serving/bin) endif()