diff options
author | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-02-20 08:17:44 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-02-20 08:17:44 +0100 |
commit | c94a5cd5c86ea80397b54baf38449180420c332b (patch) | |
tree | dcf4d60465d76b7e828b634691e2507a31d4110a /win | |
parent | e4cb186c6bab5238c42e8dcbb0da0042310922ea (diff) | |
download | mariadb-git-c94a5cd5c86ea80397b54baf38449180420c332b.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.js | 24 |
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(); |