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