Commit 97a74e5b authored by Tor Didriksen's avatar Tor Didriksen

Bug#16062056 REMOVE THE "DUMMY.BAK" FILE FROM THE TEST DATABASE, AND ADD DB.OPT

1.  remove dummy.bak
2.  create a db.opt file containing two lines:

---
default-character-set=latin1
default-collation=latin1_swedish_ci
parent 460852b3
...@@ -261,15 +261,9 @@ ADD_CUSTOM_TARGET(distclean ...@@ -261,15 +261,9 @@ ADD_CUSTOM_TARGET(distclean
IF(INSTALL_LAYOUT STREQUAL "STANDALONE") IF(INSTALL_LAYOUT STREQUAL "STANDALONE")
# We need to create empty directories (data/test) the installation. # Copy db.opt into data/test/
# This does not work with current CPack due to http://www.cmake.org/Bug/view.php?id=8767 SET(DBOPT_FILE ${CMAKE_CURRENT_SOURCE_DIR}/db.opt )
# Avoid completely empty directories and install dummy file instead. INSTALL(FILES ${DBOPT_FILE} DESTINATION data/test COMPONENT DataFiles)
# 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)
# Install initial database on windows # Install initial database on windows
IF(NOT CMAKE_CROSSCOMPILING) IF(NOT CMAKE_CROSSCOMPILING)
......
default-character-set=latin1
default-collation=latin1_swedish_ci
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment