mirror of
https://github.com/MariaDB/server.git
synced 2026-05-08 08:04:29 +02:00
Define MYSQL_(MAJOR|MINOR)_VERSION the way things are defined in CMake
instead of hacking a custom ADD_DEFINITIONS(). Approved by: Kent Boortz (via IRC)
This commit is contained in:
parent
60fd9a180c
commit
8903bae21a
2 changed files with 3 additions and 4 deletions
|
|
@ -19,10 +19,6 @@ INCLUDE(CheckFunctionExists)
|
|||
INCLUDE(CheckCSourceCompiles)
|
||||
INCLUDE(CheckCSourceRuns)
|
||||
|
||||
# Make MySQL version available to InnoDB
|
||||
ADD_DEFINITIONS("-DMYSQL_MAJOR_VERSION=${MAJOR_VERSION}")
|
||||
ADD_DEFINITIONS("-DMYSQL_MINOR_VERSION=${MINOR_VERSION}")
|
||||
|
||||
# OS tests
|
||||
IF(UNIX)
|
||||
IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue