diff --git a/include/mariadb_version.h.in b/include/mariadb_version.h.in index a82dbb7..e9005fa 100644 --- a/include/mariadb_version.h.in +++ b/include/mariadb_version.h.in @@ -30,7 +30,7 @@ #define MARIADB_PACKAGE_VERSION_ID @MARIADB_PACKAGE_VERSION_ID@ #define MARIADB_SYSTEM_TYPE "@CMAKE_SYSTEM_NAME@" #define MARIADB_MACHINE_TYPE "@CMAKE_SYSTEM_PROCESSOR@" -#define MARIADB_PLUGINDIR "@CMAKE_INSTALL_PREFIX@/@INSTALL_PLUGINDIR@" +#define MARIADB_PLUGINDIR "../@INSTALL_PLUGINDIR@" /* mysqld compile time options */ #ifndef MYSQL_CHARSET diff --git a/mariadb_config/mariadb_config.c.in b/mariadb_config/mariadb_config.c.in index 36c0117..4184e4b 100644 --- a/mariadb_config/mariadb_config.c.in +++ b/mariadb_config/mariadb_config.c.in @@ -225,7 +225,7 @@ end: } if (!p || !p[0]) { - strncpy(installation_dir, "@CMAKE_SYSROOT@@CMAKE_INSTALL_PREFIX@", PATH_MAX - 1); + strncpy(installation_dir, "../@CMAKE_INSTALL_PREFIX@", PATH_MAX - 1); return; } }