diff --git a/unittest/CMakeLists.txt b/unittest/CMakeLists.txt
index a8146114fecb925d2b3898a3a09b0f897833b6c1..e618ca09f40eb99f8690c90d18382873ca735d0e 100644
--- a/unittest/CMakeLists.txt
+++ b/unittest/CMakeLists.txt
@@ -26,7 +26,7 @@ SET(TEST_test_distribute_LIBS
   )
 
 SET(TEST_test_distribute_EXT_LIBS
-  sot-core ${CMAKE_INSTALL_PREFIX}/lib/plugin/parameter-server.so
+  sot-core ${SOT_CORE_LIBDIR}/plugin/parameter-server.so
   )
 
 #test paths and names (without .cpp extension)