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
8276c593
Commit
8276c593
authored
May 20, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#244 silently skip jemalloc if it does not exist in the third_party directory
parent
3845c29c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
cmake_modules/TokuThirdParty.cmake
cmake_modules/TokuThirdParty.cmake
+2
-3
No files found.
cmake_modules/TokuThirdParty.cmake
View file @
8276c593
...
...
@@ -3,9 +3,7 @@ include(ExternalProject)
if
(
NOT DEFINED LIBJEMALLOC
)
## add jemalloc with an external project
set
(
JEMALLOC_SOURCE_DIR
"
${
TokuDB_SOURCE_DIR
}
/third_party/jemalloc"
CACHE FILEPATH
"Where to find jemalloc sources."
)
if
(
NOT EXISTS
"
${
JEMALLOC_SOURCE_DIR
}
/configure"
)
message
(
FATAL_ERROR
"Can't find jemalloc sources. Please check them out to
${
JEMALLOC_SOURCE_DIR
}
or modify JEMALLOC_SOURCE_DIR."
)
endif
()
if
(
EXISTS
"
${
JEMALLOC_SOURCE_DIR
}
/configure"
)
set
(
jemalloc_configure_opts
"CC=
${
CMAKE_C_COMPILER
}
"
"--with-jemalloc-prefix="
"--with-private-namespace=tokudb_jemalloc_internal_"
"--enable-cc-silence"
)
option
(
JEMALLOC_DEBUG
"Build jemalloc with --enable-debug."
OFF
)
if
(
JEMALLOC_DEBUG
)
...
...
@@ -33,6 +31,7 @@ if (NOT DEFINED LIBJEMALLOC)
install
(
DIRECTORY
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
CMAKE_CFG_INTDIR
}
/jemalloc/lib"
DESTINATION .
COMPONENT tokukv_libs_extra
)
endif
()
endif
()
endif
()
## add lzma with an external project
...
...
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