1
- # Copyright (c) 2009, 2019 , Oracle and/or its affiliates. All rights reserved .
1
+ # Copyright (c) 2009, 2020 , Oracle and/or its affiliates.
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License, version 2.0,
@@ -28,17 +28,17 @@ SET(SHARED_LIB_MAJOR_VERSION "21")
28
28
SET (SHARED_LIB_MINOR_VERSION "1" )
29
29
SET (PROTOCOL_VERSION "10" )
30
30
31
- # Generate "something" to trigger cmake rerun when VERSION changes
31
+ # Generate "something" to trigger cmake rerun when MYSQL_VERSION changes
32
32
CONFIGURE_FILE (
33
- ${CMAKE_SOURCE_DIR} /VERSION
33
+ ${CMAKE_SOURCE_DIR} /MYSQL_VERSION
34
34
${CMAKE_BINARY_DIR} /VERSION.dep
35
35
)
36
36
37
- # Read value for a variable from VERSION .
37
+ # Read value for a variable from MYSQL_VERSION .
38
38
39
39
MACRO (MYSQL_GET_CONFIG_VALUE keyword var )
40
40
IF (NOT ${var} )
41
- FILE (STRINGS ${CMAKE_SOURCE_DIR} /VERSION str REGEX "^[ ]*${keyword} =" )
41
+ FILE (STRINGS ${CMAKE_SOURCE_DIR} /MYSQL_VERSION str REGEX "^[ ]*${keyword} =" )
42
42
IF (str )
43
43
STRING (REPLACE "${keyword} =" "" str ${str} )
44
44
STRING (REGEX REPLACE "[ ].*" "" str "${str} " )
@@ -59,7 +59,7 @@ MACRO(GET_MYSQL_VERSION)
59
59
IF (NOT DEFINED MAJOR_VERSION OR
60
60
NOT DEFINED MINOR_VERSION OR
61
61
NOT DEFINED PATCH_VERSION )
62
- MESSAGE (FATAL_ERROR "VERSION file cannot be parsed." )
62
+ MESSAGE (FATAL_ERROR "MYSQL_VERSION file cannot be parsed." )
63
63
ENDIF ()
64
64
65
65
SET (VERSION
@@ -80,7 +80,7 @@ MACRO(GET_MYSQL_VERSION)
80
80
SET (CPACK_PACKAGE_VERSION_PATCH ${PATCH_VERSION} )
81
81
82
82
IF (WITH_NDBCLUSTER )
83
- # Read MySQL Cluster version values from VERSION , these are optional
83
+ # Read MySQL Cluster version values from MYSQL_VERSION , these are optional
84
84
# as by default MySQL Cluster is using the MySQL Server version
85
85
MYSQL_GET_CONFIG_VALUE ("MYSQL_CLUSTER_VERSION_MAJOR" CLUSTER_MAJOR_VERSION )
86
86
MYSQL_GET_CONFIG_VALUE ("MYSQL_CLUSTER_VERSION_MINOR" CLUSTER_MINOR_VERSION )
@@ -89,12 +89,12 @@ MACRO(GET_MYSQL_VERSION)
89
89
90
90
# Set MySQL Cluster version same as the MySQL Server version
91
91
# unless a specific MySQL Cluster version has been specified
92
- # in the VERSION file. This is the version used when creating
92
+ # in the MYSQL_VERSION file. This is the version used when creating
93
93
# the cluster package names as well as by all the NDB binaries.
94
94
IF (DEFINED CLUSTER_MAJOR_VERSION AND
95
95
DEFINED CLUSTER_MINOR_VERSION AND
96
96
DEFINED CLUSTER_PATCH_VERSION )
97
- # Set MySQL Cluster version to the specific version defined in VERSION
97
+ # Set MySQL Cluster version to the specific version defined in MYSQL_VERSION
98
98
SET (MYSQL_CLUSTER_VERSION "${CLUSTER_MAJOR_VERSION} " )
99
99
SET (MYSQL_CLUSTER_VERSION
100
100
"${MYSQL_CLUSTER_VERSION} .${CLUSTER_MINOR_VERSION} " )
@@ -106,7 +106,7 @@ MACRO(GET_MYSQL_VERSION)
106
106
ENDIF ()
107
107
ELSE ()
108
108
# Set MySQL Cluster version to the same as MySQL Server, possibly
109
- # overriding the extra version with value specified in VERSION
109
+ # overriding the extra version with value specified in MYSQL_VERSION
110
110
# This might be used when MySQL Cluster is still released as DMR
111
111
# while MySQL Server is already GA.
112
112
SET (MYSQL_CLUSTER_VERSION
0 commit comments