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