fix: cache_server / cache_admin enhance rpath

This commit is contained in:
jonyguo 2021-01-21 16:02:06 +08:00 committed by jonyguo
parent 79ccff0e3d
commit f0fa1a2356
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)