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:
Vasil Dimov 2010-12-02 12:04:10 +02:00
commit 8903bae21a
2 changed files with 3 additions and 4 deletions

View file

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