summaryrefslogtreecommitdiff
path: root/win
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@mysql.com>2010-02-20 08:17:44 +0100
committerVladislav Vaintroub <vvaintroub@mysql.com>2010-02-20 08:17:44 +0100
commitab3ecf5a7cc0ddf5bf631d1abfcbddf744eed171 (patch)
treedcf4d60465d76b7e828b634691e2507a31d4110a /win
parentb7d7a42800979a6eebe489a12833a882f36b9325 (diff)
downloadmariadb-git-ab3ecf5a7cc0ddf5bf631d1abfcbddf744eed171.tar.gz
Fix configure.js : set the variabes in cache, so they can overwrite cache variables in CMakeLists.txt
Diffstat (limited to 'win')
-rw-r--r--win/configure.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/win/configure.js b/win/configure.js
index 00a66b32b64..764b33bb976 100644
--- a/win/configure.js
+++ b/win/configure.js
@@ -44,12 +44,12 @@ try
case "EXTRA_DEBUG":
case "WITH_EMBEDDED_SERVER":
case "WITHOUT_ATOMICS":
- configfile.WriteLine("SET (" + args.Item(i) + " TRUE)");
+ configfile.WriteLine("SET (" + args.Item(i) + " TRUE CACHE BOOL \"\")");
break;
case "MYSQL_SERVER_SUFFIX":
case "MYSQLD_EXE_SUFFIX":
configfile.WriteLine("SET (" + parts[0] + " \""
- + parts[1] + "\")");
+ + parts[1] + "\" CACHE STRING \"\")");
break;
case "COMPILATION_COMMENT":
default_comment = parts[1];
@@ -93,26 +93,26 @@ try
}
configfile.WriteLine("SET (COMPILATION_COMMENT \"" +
- default_comment + "\")");
+ default_comment + "\" CACHE STRING \"\" )");
configfile.WriteLine("SET (PROTOCOL_VERSION \"" +
- GetValue(configureIn, "PROTOCOL_VERSION") + "\")");
+ GetValue(configureIn, "PROTOCOL_VERSION") + "\" CACHE STRING \"\")");
configfile.WriteLine("SET (DOT_FRM_VERSION \"" +
- GetValue(configureIn, "DOT_FRM_VERSION") + "\")");
- configfile.WriteLine("SET (MYSQL_TCP_PORT_DEFAULT \"" + default_port + "\")");
- configfile.WriteLine("SET (MYSQL_TCP_PORT \"" + actual_port + "\")");
+ GetValue(configureIn, "DOT_FRM_VERSION") + "\" CACHE STRING \"\")");
+ configfile.WriteLine("SET (MYSQL_TCP_PORT_DEFAULT \"" + default_port + "\" CACHE STRING \"\")");
+ configfile.WriteLine("SET (MYSQL_TCP_PORT \"" + actual_port + "\" CACHE STRING \"\")");
configfile.WriteLine("SET (MYSQL_UNIX_ADDR \"" +
- GetValue(configureIn, "MYSQL_UNIX_ADDR_DEFAULT") + "\")");
+ GetValue(configureIn, "MYSQL_UNIX_ADDR_DEFAULT") + "\" CACHE STRING \"\")");
var version = GetVersion(configureIn);
- configfile.WriteLine("SET (VERSION \"" + version + "\")");
+ configfile.WriteLine("SET (VERSION \"" + version + "\" CACHE STRING \"\")");
configfile.WriteLine("SET (MYSQL_BASE_VERSION \"" +
- GetBaseVersion(version) + "\")");
+ GetBaseVersion(version) + "\" CACHE STRING \"\")");
configfile.WriteLine("SET (MYSQL_VERSION_ID \"" +
- GetVersionId(version) + "\")");
+ GetVersionId(version) + "\" CACHE STRING \"\")");
var engineOptions = ParsePlugins();
for (option in engineOptions)
{
- configfile.WriteLine("SET(" + engineOptions[option] + " TRUE)");
+ configfile.WriteLine("SET(" + engineOptions[option] + " TRUE CACHE BOOL \"\")");
}
configfile.Close();