diff --git a/CMakeLists.txt b/CMakeLists.txt index 904b2f76f..d71c69ff5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,7 +58,7 @@ option(ENABLE_CACHE "Enable data caching for schemas and hash tables for data (t option(ENABLE_LATEST_REVISIONS "Enable reusing of latest revisions of schemas" ON) option(ENABLE_LYD_PRIV "Add a private pointer also to struct lyd_node (data node structure), just like in struct lys_node, for arbitrary user data" OFF) option(ENABLE_FUZZ_TARGETS "Build target programs suitable for fuzzing with AFL" OFF) -set(PLUGINS_DIR "${CMAKE_INSTALL_LIBDIR}/libyang" CACHE STRING "Directory with libyang plugins (extensions and user types)") +set(PLUGINS_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libyang" CACHE STRING "Directory with libyang plugins (extensions and user types)") if(ENABLE_CACHE) set(LY_ENABLED_CACHE 1)