 -  SET(scriptdir ${INSTALL_BINDIRABS})
 -  SET(libexecdir ${INSTALL_SBINDIRABS})
 -  SET(pkgdatadir ${INSTALL_MYSQLSHAREDIRABS})
+-  SET(pkgplugindir ${INSTALL_PLUGINDIRABS})
 -  SET(localstatedir ${MYSQL_DATADIR})
 -ENDIF()
 +SET(prefix "${CMAKE_INSTALL_PREFIX}")

--- a/scripts/CMakeLists.txt
+++ b/scripts/CMakeLists.txt
@@ -175,23 +175,13 @@
 # i.e. makes access relative the current directory. This matches
 # the documentation, so better not change this.
 
-IF(INSTALL_LAYOUT MATCHES "STANDALONE")
-  SET(prefix ".")
-  SET(bindir ${prefix}/${INSTALL_BINDIR})

-  SET(scriptdir ${prefix}/${INSTALL_BINDIR})
-  SET(libexecdir ${prefix}/${INSTALL_SBINDIR})
-  SET(pkgdatadir ${prefix}/${INSTALL_MYSQLSHAREDIR})
-  SET(pkgplugindir ${prefix}/${INSTALL_PLUGINDIR})
-  SET(localstatedir ${prefix}/data)
-ELSE()
-  SET(prefix "${CMAKE_INSTALL_PREFIX}")
