early-access version 2853
This commit is contained in:
26
externals/vcpkg/ports/libmysql/rename-version.patch
vendored
Executable file
26
externals/vcpkg/ports/libmysql/rename-version.patch
vendored
Executable file
@@ -0,0 +1,26 @@
|
||||
diff --git a/VERSION b/VERSION.txt
|
||||
similarity index 100%
|
||||
rename from VERSION
|
||||
rename to VERSION.txt
|
||||
diff --git a/cmake/mysql_version.cmake b/cmake/mysql_version.cmake
|
||||
index bed6e9f02e2..a924ef09bac 100644
|
||||
--- a/cmake/mysql_version.cmake
|
||||
+++ b/cmake/mysql_version.cmake
|
||||
@@ -30,7 +30,7 @@ SET(PROTOCOL_VERSION "10")
|
||||
|
||||
# Generate "something" to trigger cmake rerun when VERSION changes
|
||||
CONFIGURE_FILE(
|
||||
- ${CMAKE_SOURCE_DIR}/VERSION
|
||||
+ ${CMAKE_SOURCE_DIR}/VERSION.txt
|
||||
${CMAKE_BINARY_DIR}/VERSION.dep
|
||||
)
|
||||
|
||||
@@ -38,7 +38,7 @@ CONFIGURE_FILE(
|
||||
|
||||
MACRO(MYSQL_GET_CONFIG_VALUE keyword var)
|
||||
IF(NOT ${var})
|
||||
- FILE (STRINGS ${CMAKE_SOURCE_DIR}/VERSION str REGEX "^[ ]*${keyword}=")
|
||||
+ FILE (STRINGS ${CMAKE_SOURCE_DIR}/VERSION.txt str REGEX "^[ ]*${keyword}=")
|
||||
IF(str)
|
||||
STRING(REPLACE "${keyword}=" "" str ${str})
|
||||
STRING(REGEX REPLACE "[ ].*" "" str "${str}")
|
Reference in New Issue
Block a user