yuzu/externals/vcpkg/ports/libmysql/rename-version.patch
2022-07-23 03:01:36 +02:00

27 lines
874 B
Diff
Executable File

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}")