Skip to content

Commit ab3ecf5

Browse files
committed
Fix configure.js : set the variabes in cache, so they can overwrite cache variables in CMakeLists.txt
1 parent b7d7a42 commit ab3ecf5

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

win/configure.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ try
4444
case "EXTRA_DEBUG":
4545
case "WITH_EMBEDDED_SERVER":
4646
case "WITHOUT_ATOMICS":
47-
configfile.WriteLine("SET (" + args.Item(i) + " TRUE)");
47+
configfile.WriteLine("SET (" + args.Item(i) + " TRUE CACHE BOOL \"\")");
4848
break;
4949
case "MYSQL_SERVER_SUFFIX":
5050
case "MYSQLD_EXE_SUFFIX":
5151
configfile.WriteLine("SET (" + parts[0] + " \""
52-
+ parts[1] + "\")");
52+
+ parts[1] + "\" CACHE STRING \"\")");
5353
break;
5454
case "COMPILATION_COMMENT":
5555
default_comment = parts[1];
@@ -93,26 +93,26 @@ try
9393
}
9494

9595
configfile.WriteLine("SET (COMPILATION_COMMENT \"" +
96-
default_comment + "\")");
96+
default_comment + "\" CACHE STRING \"\" )");
9797

9898
configfile.WriteLine("SET (PROTOCOL_VERSION \"" +
99-
GetValue(configureIn, "PROTOCOL_VERSION") + "\")");
99+
GetValue(configureIn, "PROTOCOL_VERSION") + "\" CACHE STRING \"\")");
100100
configfile.WriteLine("SET (DOT_FRM_VERSION \"" +
101-
GetValue(configureIn, "DOT_FRM_VERSION") + "\")");
102-
configfile.WriteLine("SET (MYSQL_TCP_PORT_DEFAULT \"" + default_port + "\")");
103-
configfile.WriteLine("SET (MYSQL_TCP_PORT \"" + actual_port + "\")");
101+
GetValue(configureIn, "DOT_FRM_VERSION") + "\" CACHE STRING \"\")");
102+
configfile.WriteLine("SET (MYSQL_TCP_PORT_DEFAULT \"" + default_port + "\" CACHE STRING \"\")");
103+
configfile.WriteLine("SET (MYSQL_TCP_PORT \"" + actual_port + "\" CACHE STRING \"\")");
104104
configfile.WriteLine("SET (MYSQL_UNIX_ADDR \"" +
105-
GetValue(configureIn, "MYSQL_UNIX_ADDR_DEFAULT") + "\")");
105+
GetValue(configureIn, "MYSQL_UNIX_ADDR_DEFAULT") + "\" CACHE STRING \"\")");
106106
var version = GetVersion(configureIn);
107-
configfile.WriteLine("SET (VERSION \"" + version + "\")");
107+
configfile.WriteLine("SET (VERSION \"" + version + "\" CACHE STRING \"\")");
108108
configfile.WriteLine("SET (MYSQL_BASE_VERSION \"" +
109-
GetBaseVersion(version) + "\")");
109+
GetBaseVersion(version) + "\" CACHE STRING \"\")");
110110
configfile.WriteLine("SET (MYSQL_VERSION_ID \"" +
111-
GetVersionId(version) + "\")");
111+
GetVersionId(version) + "\" CACHE STRING \"\")");
112112
var engineOptions = ParsePlugins();
113113
for (option in engineOptions)
114114
{
115-
configfile.WriteLine("SET(" + engineOptions[option] + " TRUE)");
115+
configfile.WriteLine("SET(" + engineOptions[option] + " TRUE CACHE BOOL \"\")");
116116
}
117117
configfile.Close();
118118

0 commit comments

Comments
 (0)