summaryrefslogtreecommitdiff
path: root/sql/CMakeLists.txt
diff options
context:
space:
mode:
authorTor Didriksen <tor.didriksen@oracle.com>2012-05-29 10:54:57 +0200
committerTor Didriksen <tor.didriksen@oracle.com>2012-05-29 10:54:57 +0200
commit5fbbd4311a34513ccceaa80250dba649a2f22462 (patch)
tree5527d306e0535d86d4f429a6fa948495ee83c64d /sql/CMakeLists.txt
parent5b8308aef921723fbaaa2ae6bcbb4fe32879e65e (diff)
downloadmariadb-git-5fbbd4311a34513ccceaa80250dba649a2f22462.tar.gz
Bug#12845091 .EMPTY FILE IN /DATA/TEST PREVENTS USERS FROM DROPPING TEST DB ON 5.5 AND 5.6
Diffstat (limited to 'sql/CMakeLists.txt')
-rw-r--r--sql/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/CMakeLists.txt b/sql/CMakeLists.txt
index 09672561c11..a3df9e7948b 100644
--- a/sql/CMakeLists.txt
+++ b/sql/CMakeLists.txt
@@ -264,7 +264,10 @@ IF(INSTALL_LAYOUT STREQUAL "STANDALONE")
# We need to create empty directories (data/test) the installation.
# This does not work with current CPack due to http://www.cmake.org/Bug/view.php?id=8767
# Avoid completely empty directories and install dummy file instead.
-SET(DUMMY_FILE ${CMAKE_CURRENT_BINARY_DIR}/.empty )
+# Use a file extension so that it will be deleted in case someone does
+# 'drop database test'
+# See deletable_extentions.
+SET(DUMMY_FILE ${CMAKE_CURRENT_BINARY_DIR}/dummy.bak )
FILE(WRITE ${DUMMY_FILE} "")
INSTALL(FILES ${DUMMY_FILE} DESTINATION data/test COMPONENT DataFiles)