forked from mindspore-Ecosystem/mindspore
fix: cache_server / cache_admin enhance rpath
This commit is contained in:
parent
79ccff0e3d
commit
f0fa1a2356
|
@ -39,7 +39,7 @@ add_library(engine-cache-client OBJECT
|
||||||
if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-delete-abstract-non-virtual-dtor")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-delete-abstract-non-virtual-dtor")
|
||||||
else()
|
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()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_CACHE)
|
if(ENABLE_CACHE)
|
||||||
|
|
Loading…
Reference in New Issue