From f0fa1a235619bcbd8ceb1a11095a3baf59c23d26 Mon Sep 17 00:00:00 2001 From: jonyguo Date: Thu, 21 Jan 2021 16:02:06 +0800 Subject: [PATCH] fix: cache_server / cache_admin enhance rpath --- mindspore/ccsrc/minddata/dataset/engine/cache/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/ccsrc/minddata/dataset/engine/cache/CMakeLists.txt b/mindspore/ccsrc/minddata/dataset/engine/cache/CMakeLists.txt index edfe75212d2..99b8a481498 100644 --- a/mindspore/ccsrc/minddata/dataset/engine/cache/CMakeLists.txt +++ b/mindspore/ccsrc/minddata/dataset/engine/cache/CMakeLists.txt @@ -39,7 +39,7 @@ add_library(engine-cache-client OBJECT if(CMAKE_SYSTEM_NAME MATCHES "Darwin") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-delete-abstract-non-virtual-dtor") else() - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-rpath,$ORIGIN:$ORIGIN/lib") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-rpath,$ORIGIN:$ORIGIN/..:$ORIGIN/../lib") endif() if(ENABLE_CACHE)