Commit f9c3be71 authored by Magnus Blåudd's avatar Magnus Blåudd

WL#5665: Removal of the autotools-based build system

 - Make the cmake files depend on VERSION, causing
   cmake rerun when VERSION changes
parent ee2b9394
......@@ -21,11 +21,16 @@ SET(SHARED_LIB_MAJOR_VERSION "16")
SET(PROTOCOL_VERSION "10")
SET(DOT_FRM_VERSION "6")
# Generate "something" to trigger cmake rerun when VERSION changes
CONFIGURE_FILE(
${CMAKE_SOURCE_DIR}/VERSION
${CMAKE_BINARY_DIR}/VERSION.dep
)
# Read value for a variable from VERSION.
MACRO(MYSQL_GET_CONFIG_VALUE keyword var)
IF(NOT ${var})
IF (EXISTS ${CMAKE_SOURCE_DIR}/VERSION)
FILE (STRINGS ${CMAKE_SOURCE_DIR}/VERSION str REGEX "^[ ]*${keyword}=")
IF(str)
STRING(REPLACE "${keyword}=" "" str ${str})
......@@ -33,7 +38,6 @@ MACRO(MYSQL_GET_CONFIG_VALUE keyword var)
SET(${var} ${str})
ENDIF()
ENDIF()
ENDIF()
ENDMACRO()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment