diff --git cmake/mysql_version.cmake cmake/mysql_version.cmake
index 34ed6f4..89e238c 100644
|
|
SET(DOT_FRM_VERSION "6") |
31 | 31 | |
32 | 32 | # Generate "something" to trigger cmake rerun when VERSION changes |
33 | 33 | CONFIGURE_FILE( |
34 | | ${CMAKE_SOURCE_DIR}/VERSION |
| 34 | ${CMAKE_SOURCE_DIR}/VERSION.txt |
35 | 35 | ${CMAKE_BINARY_DIR}/VERSION.dep |
36 | 36 | ) |
37 | 37 | |
… |
… |
CONFIGURE_FILE( |
39 | 39 | |
40 | 40 | MACRO(MYSQL_GET_CONFIG_VALUE keyword var) |
41 | 41 | IF(NOT ${var}) |
42 | | FILE (STRINGS ${CMAKE_SOURCE_DIR}/VERSION str REGEX "^[ ]*${keyword}=") |
| 42 | FILE (STRINGS ${CMAKE_SOURCE_DIR}/VERSION.txt str REGEX "^[ ]*${keyword}=") |
43 | 43 | IF(str) |
44 | 44 | STRING(REPLACE "${keyword}=" "" str ${str}) |
45 | 45 | STRING(REGEX REPLACE "[ ].*" "" str "${str}") |