summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorSatya B <satya.bn@sun.com>2009-10-20 15:12:38 +0530
committerSatya B <satya.bn@sun.com>2009-10-20 15:12:38 +0530
commit221c7df75c580eb5b32e5f5491cbbe2c72c67f82 (patch)
tree1eb2dadc816a64a0e58816face1e2b0588cb9d30 /storage
parenta1ac1b7d48c0e3361f1c1d77dc1a4991f78d4581 (diff)
downloadmariadb-git-221c7df75c580eb5b32e5f5491cbbe2c72c67f82.tar.gz
Merge a CMakeLists.txt change from Innodb plugin 1.0.5
Diffstat (limited to 'storage')
-rw-r--r--storage/innobase/CMakeLists.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/storage/innobase/CMakeLists.txt b/storage/innobase/CMakeLists.txt
index f48c4ea39b2..2dfd19ef06c 100644
--- a/storage/innobase/CMakeLists.txt
+++ b/storage/innobase/CMakeLists.txt
@@ -84,4 +84,20 @@ SET(INNOBASE_SOURCES btr/btr0btr.c btr/btr0cur.c btr/btr0pcur.c btr/btr0sea.c
ut/ut0byte.c ut/ut0dbg.c ut/ut0mem.c ut/ut0rnd.c ut/ut0ut.c ut/ut0vec.c
ut/ut0list.c ut/ut0wqueue.c)
ADD_DEFINITIONS(-DHAVE_WINDOWS_ATOMICS -DIB_HAVE_PAUSE_INSTRUCTION)
+
+IF (MYSQL_VERSION_ID GREATER "50137")
+ IF (WITH_INNOBASE_STORAGE_ENGINE)
+ MYSQL_STORAGE_ENGINE(INNOBASE)
+ ELSE (WITH_INNOBASE_STORAGE_ENGINE)
+ SET (INNODB_SOURCES ${INNOBASE_SOURCES})
+ MYSQL_STORAGE_ENGINE(INNODB)
+ ENDIF (WITH_INNOBASE_STORAGE_ENGINE)
+ELSE (MYSQL_VERSION_ID GREATER "50137")
+ IF (NOT SOURCE_SUBLIBS)
+ ADD_DEFINITIONS(-D_WIN32 -DMYSQL_SERVER)
+ ADD_LIBRARY(innobase STATIC ${INNOBASE_SOURCES})
+ # Require mysqld_error.h, which is built as part of the GenError
+ ADD_DEPENDENCIES(innobase GenError)
+ ENDIF (NOT SOURCE_SUBLIBS)
+ENDIF (MYSQL_VERSION_ID GREATER "50137")
MYSQL_STORAGE_ENGINE(INNOBASE)