forked from mindspore-Ecosystem/mindspore
!11487 fix: enhance rpath link for cache_server
From: @jonyguo Reviewed-by: @pandoublefeng,@heleiwang,@liucunwei Signed-off-by: @liucunwei
This commit is contained in:
commit
be8867d85d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue