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