mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
Fixes https://trac.macports.org/ticket/62784 No revbump since port either builds correctly or not at all.
23 lines
835 B
Diff
23 lines
835 B
Diff
--- a/cmake/mysql_version.cmake 2021-03-25 23:58:52.000000000 -0700
|
|
+++ b/cmake/mysql_version.cmake 2021-05-06 11:18:23.000000000 -0700
|
|
@@ -31,7 +31,7 @@
|
|
|
|
# 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
|
|
)
|
|
|
|
--- a/cmake/mysql_version.cmake 2021-05-06 11:23:19.000000000 -0700
|
|
+++ b/cmake/mysql_version.cmake 2021-05-06 11:25:25.000000000 -0700
|
|
@@ -39,7 +39,7 @@
|
|
|
|
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}")
|