Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
03b61f87
Commit
03b61f87
authored
Sep 22, 2009
by
calvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: adjust CMake file to work with old versions of MySQL
Tested with MySQL 5.1.38 and 5.1.30.
parent
a340e71b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
7 deletions
+22
-7
CMakeLists.txt
CMakeLists.txt
+22
-7
No files found.
CMakeLists.txt
View file @
03b61f87
...
...
@@ -18,7 +18,13 @@
SET
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-DSAFEMALLOC -DSAFE_MUTEX"
)
SET
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
-DSAFEMALLOC -DSAFE_MUTEX"
)
INCLUDE
(
"
${
PROJECT_SOURCE_DIR
}
/storage/mysql_storage_engine.cmake"
)
# Starting at 5.1.38, MySQL CMake files are simplified. But the plugin
# CMakeLists.txt still needs to work with previous versions of MySQL.
IF
(
MYSQL_VERSION_ID GREATER
"50137"
)
INCLUDE
(
"
${
PROJECT_SOURCE_DIR
}
/storage/mysql_storage_engine.cmake"
)
ENDIF
(
MYSQL_VERSION_ID GREATER
"50137"
)
IF
(
CMAKE_SIZEOF_VOID_P MATCHES 8
)
SET
(
WIN64 TRUE
)
ENDIF
(
CMAKE_SIZEOF_VOID_P MATCHES 8
)
...
...
@@ -76,9 +82,18 @@ SET(INNOBASE_SOURCES btr/btr0btr.c btr/btr0cur.c btr/btr0pcur.c btr/btr0sea.c
ut/ut0list.c ut/ut0wqueue.c
)
ADD_DEFINITIONS
(
-DHAVE_WINDOWS_ATOMICS -DIB_HAVE_PAUSE_INSTRUCTION
)
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
)
\ No newline at end of file
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"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment