build: honour CMake install prefix in hardcoded paths
[project/rpcd.git] / include / rpcd / plugin.h
index 363c0d7db40b71da4cb09021a2e1c1080812c5fe..b795f0ee355498ebd8f9ca3d0295fc8280ddbf4b 100644 (file)
 #include <rpcd/session.h>
 
 /* location of plugin executables */
-#define RPC_PLUGIN_DIRECTORY   "/usr/libexec/rpcd"
+#define RPC_PLUGIN_DIRECTORY   INSTALL_PREFIX "/libexec/rpcd"
 
 /* location of plugin libraries */
-#define RPC_LIBRARY_DIRECTORY  "/usr/lib/rpcd"
+#define RPC_LIBRARY_DIRECTORY  INSTALL_PREFIX "/lib/rpcd"
 
 struct rpc_daemon_ops {
     bool (*session_access)(const char *sid, const char *scope,