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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
11fc6b49
Commit
11fc6b49
authored
Sep 23, 2013
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-5053 - fix cyclic dependency when building with Ninja CMake generator
parent
b722aae6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
cmake/jemalloc.cmake
cmake/jemalloc.cmake
+8
-1
sql/CMakeLists.txt
sql/CMakeLists.txt
+1
-1
No files found.
cmake/jemalloc.cmake
View file @
11fc6b49
...
@@ -15,13 +15,20 @@ MACRO (USE_BUNDLED_JEMALLOC)
...
@@ -15,13 +15,20 @@ MACRO (USE_BUNDLED_JEMALLOC)
IF
(
CMAKE_BUILD_TYPE MATCHES
"Debug"
AND NOT APPLE
)
# see the comment in CMakeLists.txt
IF
(
CMAKE_BUILD_TYPE MATCHES
"Debug"
AND NOT APPLE
)
# see the comment in CMakeLists.txt
LIST
(
APPEND JEMALLOC_CONFIGURE_OPTS --enable-debug
)
LIST
(
APPEND JEMALLOC_CONFIGURE_OPTS --enable-debug
)
ENDIF
()
ENDIF
()
IF
(
CMAKE_GENERATOR MATCHES
"Makefiles"
)
SET
(
MAKE_COMMAND
${
CMAKE_MAKE_PROGRAM
}
)
ELSE
()
# Xcode/Ninja generators
SET
(
MAKE_COMMAND make
)
ENDIF
()
ExternalProject_Add
(
jemalloc
ExternalProject_Add
(
jemalloc
PREFIX extra/jemalloc
PREFIX extra/jemalloc
SOURCE_DIR
${
SOURCE_DIR
}
SOURCE_DIR
${
SOURCE_DIR
}
BINARY_DIR
${
BINARY_DIR
}
BINARY_DIR
${
BINARY_DIR
}
STAMP_DIR
${
BINARY_DIR
}
STAMP_DIR
${
BINARY_DIR
}
CONFIGURE_COMMAND
"
${
SOURCE_DIR
}
/configure"
${
JEMALLOC_CONFIGURE_OPTS
}
CONFIGURE_COMMAND
"
${
SOURCE_DIR
}
/configure"
${
JEMALLOC_CONFIGURE_OPTS
}
BUILD_COMMAND
${
CMAKE_MAKE_PROGRAM
}
"build_lib_static"
BUILD_COMMAND
${
MAKE_COMMAND
}
"build_lib_static"
INSTALL_COMMAND
""
INSTALL_COMMAND
""
)
)
ADD_LIBRARY
(
libjemalloc STATIC IMPORTED
)
ADD_LIBRARY
(
libjemalloc STATIC IMPORTED
)
...
...
sql/CMakeLists.txt
View file @
11fc6b49
...
@@ -25,7 +25,6 @@ ${CMAKE_BINARY_DIR}/sql
...
@@ -25,7 +25,6 @@ ${CMAKE_BINARY_DIR}/sql
SET
(
GEN_SOURCES
SET
(
GEN_SOURCES
${
CMAKE_CURRENT_BINARY_DIR
}
/sql_yacc.h
${
CMAKE_CURRENT_BINARY_DIR
}
/sql_yacc.h
${
CMAKE_CURRENT_BINARY_DIR
}
/sql_yacc.cc
${
CMAKE_CURRENT_BINARY_DIR
}
/sql_yacc.cc
${
CMAKE_CURRENT_BINARY_DIR
}
/sql_builtin.cc
${
CMAKE_CURRENT_BINARY_DIR
}
/lex_hash.h
${
CMAKE_CURRENT_BINARY_DIR
}
/lex_hash.h
)
)
...
@@ -85,6 +84,7 @@ SET (SQL_SOURCE
...
@@ -85,6 +84,7 @@ SET (SQL_SOURCE
gcalc_slicescan.cc gcalc_tools.cc
gcalc_slicescan.cc gcalc_tools.cc
threadpool_common.cc
threadpool_common.cc
../sql-common/mysql_async.c
../sql-common/mysql_async.c
${
CMAKE_CURRENT_BINARY_DIR
}
/sql_builtin.cc
${
GEN_SOURCES
}
${
GEN_SOURCES
}
${
MYSYS_LIBWRAP_SOURCE
}
${
MYSYS_LIBWRAP_SOURCE
}
)
)
...
...
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