diff --git a/CMakeLists.txt b/CMakeLists.txt index cf0ee0b58..7adac882d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1009,7 +1009,7 @@ set(ROCKSDB_PLUGIN_BUILTINS "") message(STATUS "ROCKSDB PLUGINS TO BUILD ${ROCKSDB_PLUGINS}") list(APPEND PLUGINS ${ROCKSDB_PLUGINS}) foreach(PLUGIN IN LISTS PLUGINS) - set(PLUGIN_ROOT "${CMAKE_SOURCE_DIR}/plugin/${PLUGIN}/") + set(PLUGIN_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/plugin/${PLUGIN}/") message("including rocksb plugin ${PLUGIN_ROOT}") set(PLUGINMKFILE "${PLUGIN_ROOT}${PLUGIN}.mk") if (NOT EXISTS ${PLUGINMKFILE})