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
016bd4fc
Commit
016bd4fc
authored
Mar 04, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-5620 CMake option to compile against an external PCRE library
parent
8705d00a
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
31 additions
and
24 deletions
+31
-24
CMakeLists.txt
CMakeLists.txt
+3
-1
client/CMakeLists.txt
client/CMakeLists.txt
+1
-2
cmake/jemalloc.cmake
cmake/jemalloc.cmake
+1
-1
cmake/pcre.cmake
cmake/pcre.cmake
+16
-0
cmake/plugin.cmake
cmake/plugin.cmake
+1
-2
libmysql/CMakeLists.txt
libmysql/CMakeLists.txt
+1
-2
libmysqld/CMakeLists.txt
libmysqld/CMakeLists.txt
+1
-2
libmysqld/examples/CMakeLists.txt
libmysqld/examples/CMakeLists.txt
+1
-2
plugin/feedback/CMakeLists.txt
plugin/feedback/CMakeLists.txt
+1
-2
plugin/qc_info/CMakeLists.txt
plugin/qc_info/CMakeLists.txt
+1
-2
sql/CMakeLists.txt
sql/CMakeLists.txt
+1
-2
storage/perfschema/CMakeLists.txt
storage/perfschema/CMakeLists.txt
+1
-2
storage/perfschema/unittest/CMakeLists.txt
storage/perfschema/unittest/CMakeLists.txt
+1
-2
unittest/mysys/CMakeLists.txt
unittest/mysys/CMakeLists.txt
+1
-2
No files found.
CMakeLists.txt
View file @
016bd4fc
...
...
@@ -153,6 +153,7 @@ INCLUDE(readline)
INCLUDE
(
libutils
)
INCLUDE
(
dtrace
)
INCLUDE
(
jemalloc
)
INCLUDE
(
pcre
)
INCLUDE
(
ctest
)
INCLUDE
(
plugin
)
INCLUDE
(
install_macros
)
...
...
@@ -362,6 +363,8 @@ MYSQL_CHECK_READLINE()
SET
(
MALLOC_LIBRARY
"system"
)
CHECK_JEMALLOC
()
CHECK_PCRE
()
#
# Setup maintainer mode options. Platform checks are
# not run with the warning options as to not perturb fragile checks
...
...
@@ -397,7 +400,6 @@ ADD_SUBDIRECTORY(include)
ADD_SUBDIRECTORY
(
dbug
)
ADD_SUBDIRECTORY
(
strings
)
ADD_SUBDIRECTORY
(
vio
)
ADD_SUBDIRECTORY
(
pcre
)
ADD_SUBDIRECTORY
(
mysys
)
ADD_SUBDIRECTORY
(
mysys_ssl
)
ADD_SUBDIRECTORY
(
libmysql
)
...
...
client/CMakeLists.txt
View file @
016bd4fc
...
...
@@ -15,8 +15,7 @@
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/include
${
CMAKE_BINARY_DIR
}
/pcre
${
CMAKE_SOURCE_DIR
}
/pcre
${
PCRE_INCLUDES
}
${
CMAKE_SOURCE_DIR
}
/mysys_ssl
${
ZLIB_INCLUDE_DIR
}
${
SSL_INCLUDE_DIRS
}
...
...
cmake/jemalloc.cmake
View file @
016bd4fc
...
...
@@ -46,7 +46,7 @@ ELSE()
ENDIF
()
SET
(
WITH_JEMALLOC
${
WITH_JEMALLOC_DEFAULT
}
CACHE STRING
"Which jemalloc to use
(p
ossible values are 'no', 'bundled', 'system', 'yes' (system if possible, otherwise bundled)"
)
"Which jemalloc to use
. P
ossible values are 'no', 'bundled', 'system', 'yes' (system if possible, otherwise bundled)"
)
MACRO
(
CHECK_JEMALLOC
)
IF
(
WITH_JEMALLOC STREQUAL
"system"
OR WITH_JEMALLOC STREQUAL
"yes"
)
...
...
cmake/pcre.cmake
0 → 100644
View file @
016bd4fc
SET
(
WITH_PCRE
"auto"
CACHE STRING
"Which pcre to use (possible values are 'bundled', 'system', or 'auto')"
)
MACRO
(
CHECK_PCRE
)
IF
(
WITH_PCRE STREQUAL
"system"
OR WITH_PCRE STREQUAL
"auto"
)
CHECK_LIBRARY_EXISTS
(
pcre pcre_stack_guard
""
HAVE_PCRE
)
ENDIF
()
IF
(
NOT HAVE_PCRE
)
IF
(
WITH_PCRE STREQUAL
"system"
)
MESSAGE
(
FATAL_ERROR
"system pcre is not found or unusable"
)
ENDIF
()
SET
(
PCRE_INCLUDES
${
CMAKE_BINARY_DIR
}
/pcre
${
CMAKE_SOURCE_DIR
}
/pcre
)
ADD_SUBDIRECTORY
(
pcre
)
ENDIF
()
ENDMACRO
()
cmake/plugin.cmake
View file @
016bd4fc
...
...
@@ -37,8 +37,7 @@ MACRO(MYSQL_ADD_PLUGIN)
# Add common include directories
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/include
${
CMAKE_SOURCE_DIR
}
/sql
${
CMAKE_BINARY_DIR
}
/pcre
${
CMAKE_SOURCE_DIR
}
/pcre
${
PCRE_INCLUDES
}
${
SSL_INCLUDE_DIRS
}
${
ZLIB_INCLUDE_DIR
}
)
...
...
libmysql/CMakeLists.txt
View file @
016bd4fc
...
...
@@ -17,8 +17,7 @@
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/include
${
CMAKE_SOURCE_DIR
}
/libmysql
${
CMAKE_BINARY_DIR
}
/pcre
${
CMAKE_SOURCE_DIR
}
/pcre
${
PCRE_INCLUDES
}
${
CMAKE_SOURCE_DIR
}
/strings
${
SSL_INCLUDE_DIRS
}
${
SSL_INTERNAL_INCLUDE_DIRS
}
...
...
libmysqld/CMakeLists.txt
View file @
016bd4fc
...
...
@@ -22,8 +22,7 @@ ${CMAKE_SOURCE_DIR}/libmysql
${
CMAKE_SOURCE_DIR
}
/libmysqld
${
CMAKE_SOURCE_DIR
}
/sql
${
CMAKE_BINARY_DIR
}
/sql
${
CMAKE_BINARY_DIR
}
/pcre
${
CMAKE_SOURCE_DIR
}
/pcre
${
PCRE_INCLUDES
}
${
ZLIB_INCLUDE_DIR
}
${
SSL_INCLUDE_DIRS
}
${
SSL_INTERNAL_INCLUDE_DIRS
}
...
...
libmysqld/examples/CMakeLists.txt
View file @
016bd4fc
...
...
@@ -15,8 +15,7 @@
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/include
${
CMAKE_SOURCE_DIR
}
/libmysqld/include
${
CMAKE_BINARY_DIR
}
/pcre
${
CMAKE_SOURCE_DIR
}
/pcre
${
PCRE_INCLUDES
}
${
CMAKE_SOURCE_DIR
}
/sql
${
MY_READLINE_INCLUDE_DIR
}
)
...
...
plugin/feedback/CMakeLists.txt
View file @
016bd4fc
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/sql
${
CMAKE_BINARY_DIR
}
/pcre
${
CMAKE_SOURCE_DIR
}
/pcre
${
PCRE_INCLUDES
}
${
SSL_INCLUDE_DIRS
}
)
SET
(
FEEDBACK_SOURCES feedback.cc sender_thread.cc
...
...
plugin/qc_info/CMakeLists.txt
View file @
016bd4fc
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/sql
${
CMAKE_BINARY_DIR
}
/pcre
${
CMAKE_SOURCE_DIR
}
/pcre
${
PCRE_INCLUDES
}
${
CMAKE_SOURCE_DIR
}
/extra/yassl/include
)
MYSQL_ADD_PLUGIN
(
QUERY_CACHE_INFO qc_info.cc
)
sql/CMakeLists.txt
View file @
016bd4fc
...
...
@@ -16,8 +16,7 @@
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/include
${
CMAKE_SOURCE_DIR
}
/sql
${
CMAKE_BINARY_DIR
}
/pcre
${
CMAKE_SOURCE_DIR
}
/pcre
${
PCRE_INCLUDES
}
${
ZLIB_INCLUDE_DIR
}
${
SSL_INCLUDE_DIRS
}
${
CMAKE_BINARY_DIR
}
/sql
...
...
storage/perfschema/CMakeLists.txt
View file @
016bd4fc
...
...
@@ -16,8 +16,7 @@
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
${
CMAKE_SOURCE_DIR
}
/include
${
CMAKE_SOURCE_DIR
}
/sql
${
CMAKE_BINARY_DIR
}
/pcre
${
CMAKE_SOURCE_DIR
}
/pcre
${
PCRE_INCLUDES
}
${
CMAKE_SOURCE_DIR
}
/extra/yassl/include
)
ADD_DEFINITIONS
(
-DMYSQL_SERVER
)
...
...
storage/perfschema/unittest/CMakeLists.txt
View file @
016bd4fc
...
...
@@ -15,8 +15,7 @@
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/include
${
CMAKE_SOURCE_DIR
}
/include/mysql
${
CMAKE_BINARY_DIR
}
/pcre
${
CMAKE_SOURCE_DIR
}
/pcre
${
PCRE_INCLUDES
}
${
CMAKE_SOURCE_DIR
}
/sql
${
SSL_INCLUDE_DIRS
}
${
CMAKE_SOURCE_DIR
}
/unittest/mytap
...
...
unittest/mysys/CMakeLists.txt
View file @
016bd4fc
...
...
@@ -14,8 +14,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/sql
${
CMAKE_BINARY_DIR
}
/pcre
${
CMAKE_SOURCE_DIR
}
/pcre
${
PCRE_INCLUDES
}
${
CMAKE_SOURCE_DIR
}
/extra/yassl/include
)
MY_ADD_TESTS
(
bitmap base64 my_vsnprintf my_atomic my_rdtsc lf my_malloc
...
...
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