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
b880985e
Commit
b880985e
authored
Aug 04, 2007
by
iggy@amd64.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post Merge Fixup.
parent
64b6c611
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
33 deletions
+32
-33
CMakeLists.txt
CMakeLists.txt
+18
-19
libmysql/CMakeLists.txt
libmysql/CMakeLists.txt
+14
-14
No files found.
CMakeLists.txt
View file @
b880985e
...
@@ -18,22 +18,24 @@ PROJECT(MySql)
...
@@ -18,22 +18,24 @@ PROJECT(MySql)
# This reads user configuration, generated by configure.js.
# This reads user configuration, generated by configure.js.
INCLUDE
(
win/configure.data
)
INCLUDE
(
win/configure.data
)
# By default, CMake will create Release, Debug, RelWithDebInfo and MinSizeRel
# Hardcode support for CSV storage engine
# configurations. The EMBEDDED_ONLY build parameter is necessary because CMake
SET
(
WITH_CSV_STORAGE_ENGINE TRUE
)
# doesn't support custom build configurations for VS2005. Since the Debug
# configuration does not work properly with USE_TLS defined
# CMAKE will not allow custom VS7+ configurations. mysqld and libmysqld
# (see mysys/CMakeLists.txt) the easiest way to debug the Embedded Server is to
# cannot be built at the same time as they require different configurations
# use the RelWithDebInfo configuration without optimizations.
IF
(
EMBEDDED_ONLY
)
#
ADD_DEFINITIONS
(
-DEMBEDDED_LIBRARY
)
# Debug default CXX_FLAGS "/D_DEBUG /MDd /Zi /Ob0 /Od /RTC1"
# By default, CMake will create Release, Debug, RelWithDebInfo and MinSizeRel
# RelWithDebInfo default CXX_FLAGS "/MD /Zi /O2 /Ob1 /D NDEBUG"
# configurations. The EMBEDDED_ONLY build parameter is necessary because CMake
#
# doesn't support custom build configurations for VS2005. Since the Debug
IF
(
NOT EMBEDDED_ONLY
)
# configuration does not work properly with USE_TLS defined
# Hardcode support for CSV storage engine
# (see mysys/CMakeLists.txt) the easiest way to debug the Embedded Server is to
SET
(
WITH_CSV_STORAGE_ENGINE TRUE
)
# use the RelWithDebInfo configuration without optimizations.
ELSE
(
NOT EMBEDDED_ONLY
)
#
# Debug default CXX_FLAGS "/D_DEBUG /MDd /Zi /Ob0 /Od /RTC1"
# RelWithDebInfo default CXX_FLAGS "/MD /Zi /O2 /Ob1 /D NDEBUG"
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"/MD /Zi /Od /Ob0 /D NDEBUG"
CACHE STRING
"No Optimization"
FORCE
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"/MD /Zi /Od /Ob0 /D NDEBUG"
CACHE STRING
"No Optimization"
FORCE
)
ENDIF
(
NOT
EMBEDDED_ONLY
)
ENDIF
(
EMBEDDED_ONLY
)
CONFIGURE_FILE
(
${
CMAKE_SOURCE_DIR
}
/include/mysql_version.h.in
CONFIGURE_FILE
(
${
CMAKE_SOURCE_DIR
}
/include/mysql_version.h.in
${
CMAKE_SOURCE_DIR
}
/include/mysql_version.h @ONLY
)
${
CMAKE_SOURCE_DIR
}
/include/mysql_version.h @ONLY
)
...
@@ -246,16 +248,13 @@ ENDIF(WITH_FEDERATED_STORAGE_ENGINE)
...
@@ -246,16 +248,13 @@ ENDIF(WITH_FEDERATED_STORAGE_ENGINE)
IF
(
WITH_INNOBASE_STORAGE_ENGINE
)
IF
(
WITH_INNOBASE_STORAGE_ENGINE
)
ADD_SUBDIRECTORY
(
storage/innobase
)
ADD_SUBDIRECTORY
(
storage/innobase
)
ENDIF
(
WITH_INNOBASE_STORAGE_ENGINE
)
ENDIF
(
WITH_INNOBASE_STORAGE_ENGINE
)
# CMAKE will not allow custom VS7+ configurations. mysqld and libmysqld
ADD_SUBDIRECTORY
(
libmysql
)
# cannot be built at the same time as they require different configurations
IF
(
EMBEDDED_ONLY
)
IF
(
EMBEDDED_ONLY
)
ADD_DEFINITIONS
(
-DEMBEDDED_LIBRARY
)
ADD_SUBDIRECTORY
(
libmysqld
)
ADD_SUBDIRECTORY
(
libmysqld
)
ADD_SUBDIRECTORY
(
libmysqld/examples
)
ADD_SUBDIRECTORY
(
libmysqld/examples
)
ELSE
(
EMBEDDED_ONLY
)
ELSE
(
EMBEDDED_ONLY
)
ADD_SUBDIRECTORY
(
client
)
ADD_SUBDIRECTORY
(
client
)
ADD_SUBDIRECTORY
(
sql
)
ADD_SUBDIRECTORY
(
sql
)
ADD_SUBDIRECTORY
(
server-tools/instance-manager
)
ADD_SUBDIRECTORY
(
server-tools/instance-manager
)
ADD_SUBDIRECTORY
(
libmysql
)
ADD_SUBDIRECTORY
(
tests
)
ADD_SUBDIRECTORY
(
tests
)
ENDIF
(
EMBEDDED_ONLY
)
ENDIF
(
EMBEDDED_ONLY
)
libmysql/CMakeLists.txt
View file @
b880985e
...
@@ -110,24 +110,24 @@ SET(CLIENT_SOURCES ../mysys/array.c ../strings/bchange.c ../strings/bmove.c
...
@@ -110,24 +110,24 @@ SET(CLIENT_SOURCES ../mysys/array.c ../strings/bchange.c ../strings/bmove.c
# beond the documented API, and try access the Thread Local Storage.
# beond the documented API, and try access the Thread Local Storage.
# The "_notls" means no Tls*() functions used, i.e. "static" TLS.
# The "_notls" means no Tls*() functions used, i.e. "static" TLS.
ADD_LIBRARY
(
libmysql SHARED
${
CLIENT_SOURCES
}
dll.c libmysql.def
)
ADD_LIBRARY
(
mysqlclient STATIC
${
CLIENT_SOURCES
}
)
ADD_LIBRARY
(
mysqlclient STATIC
${
CLIENT_SOURCES
}
)
ADD_LIBRARY
(
mysqlclient_notls STATIC
${
CLIENT_SOURCES
}
)
SET_TARGET_PROPERTIES
(
libmysql mysqlclient PROPERTIES COMPILE_FLAGS
"-DUSE_TLS"
)
ADD_DEPENDENCIES
(
libmysql GenError
)
TARGET_LINK_LIBRARIES
(
libmysql wsock32
)
ADD_DEPENDENCIES
(
mysqlclient GenError
)
ADD_DEPENDENCIES
(
mysqlclient GenError
)
TARGET_LINK_LIBRARIES
(
mysqlclient
)
TARGET_LINK_LIBRARIES
(
mysqlclient
)
ADD_LIBRARY
(
mysqlclient_notls STATIC
${
CLIENT_SOURCES
}
)
ADD_DEPENDENCIES
(
mysqlclient_notls GenError
)
ADD_DEPENDENCIES
(
mysqlclient_notls GenError
)
TARGET_LINK_LIBRARIES
(
mysqlclient_notls
)
TARGET_LINK_LIBRARIES
(
mysqlclient_notls
)
ADD_EXECUTABLE
(
myTest mytest.c
)
IF
(
NOT EMBEDDED_ONLY
)
TARGET_LINK_LIBRARIES
(
myTest libmysql
)
ADD_LIBRARY
(
libmysql SHARED
${
CLIENT_SOURCES
}
dll.c libmysql.def
)
SET_TARGET_PROPERTIES
(
libmysql mysqlclient PROPERTIES COMPILE_FLAGS
"-DUSE_TLS"
)
ADD_DEPENDENCIES
(
libmysql GenError
)
TARGET_LINK_LIBRARIES
(
libmysql wsock32
)
ADD_EXECUTABLE
(
myTest mytest.c
)
TARGET_LINK_LIBRARIES
(
myTest libmysql
)
IF
(
EMBED_MANIFESTS
)
IF
(
EMBED_MANIFESTS
)
MYSQL_EMBED_MANIFEST
(
"myTest"
"asInvoker"
)
MYSQL_EMBED_MANIFEST
(
"myTest"
"asInvoker"
)
ENDIF
(
EMBED_MANIFESTS
)
ENDIF
(
EMBED_MANIFESTS
)
ENDIF
(
NOT EMBEDDED_ONLY
)
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