!11487 fix: enhance rpath link for cache_server

From: @jonyguo
Reviewed-by: @pandoublefeng,@heleiwang,@liucunwei
Signed-off-by: @liucunwei
This commit is contained in:
mindspore-ci-bot 2021-01-22 14:27:45 +08:00 committed by Gitee
commit be8867d85d
1 changed files with 1 additions and 1 deletions

View File

@ -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)