Lines 1-18
Link Here
|
1 |
--- client/CMakeLists.txt.orig 2019-09-20 08:30:51 UTC |
1 |
--- client/CMakeLists.txt.orig 2021-03-22 08:44:50 UTC |
2 |
+++ client/CMakeLists.txt |
2 |
+++ client/CMakeLists.txt |
3 |
@@ -28,8 +28,11 @@ DISABLE_MISSING_PROFILE_WARNING() |
3 |
@@ -28,10 +28,13 @@ DISABLE_MISSING_PROFILE_WARNING() |
4 |
## Subdirectory with common client code. |
4 |
## Subdirectory with common client code. |
5 |
ADD_SUBDIRECTORY(base) |
5 |
ADD_SUBDIRECTORY(base) |
6 |
## Subdirectory for mysqlpump code. |
6 |
## Subdirectory for mysqlpump code. |
7 |
+IF(WITHOUT_SERVER) |
7 |
+IF(WITHOUT_SERVER) |
8 |
ADD_SUBDIRECTORY(dump) |
8 |
ADD_SUBDIRECTORY(dump) |
|
|
9 |
## Subdirectory for mysql_migrate_keyring code. |
10 |
ADD_SUBDIRECTORY(migrate_keyring) |
9 |
+ENDIF() |
11 |
+ENDIF() |
10 |
|
12 |
|
11 |
+IF(NOT WITHOUT_CLIENTLIBS) |
13 |
+IF(NOT WITHOUT_CLIENTLIBS) |
12 |
MYSQL_ADD_EXECUTABLE(mysql |
14 |
MYSQL_ADD_EXECUTABLE(mysql |
13 |
${CMAKE_SOURCE_DIR}/sql-common/net_ns.cc |
15 |
${CMAKE_SOURCE_DIR}/sql-common/net_ns.cc |
14 |
completion_hash.cc |
16 |
completion_hash.cc |
15 |
@@ -39,6 +42,7 @@ MYSQL_ADD_EXECUTABLE(mysql |
17 |
@@ -41,6 +44,7 @@ MYSQL_ADD_EXECUTABLE(mysql |
16 |
client_query_attributes.cc |
18 |
client_query_attributes.cc |
17 |
LINK_LIBRARIES mysqlclient client_base ${EDITLINE_LIBRARY} |
19 |
LINK_LIBRARIES mysqlclient client_base ${EDITLINE_LIBRARY} |
18 |
) |
20 |
) |
Lines 20-26
Link Here
|
20 |
|
22 |
|
21 |
IF(NOT WITHOUT_SERVER) |
23 |
IF(NOT WITHOUT_SERVER) |
22 |
MYSQL_ADD_EXECUTABLE(mysql_upgrade |
24 |
MYSQL_ADD_EXECUTABLE(mysql_upgrade |
23 |
@@ -55,6 +59,7 @@ IF(SOLARIS_SPARC AND MY_COMPILER_IS_SUNPRO AND |
25 |
@@ -57,6 +61,7 @@ IF(SOLARIS_SPARC AND MY_COMPILER_IS_SUNPRO AND |
24 |
) |
26 |
) |
25 |
ENDIF() |
27 |
ENDIF() |
26 |
|
28 |
|
Lines 28-34
Link Here
|
28 |
MYSQL_ADD_EXECUTABLE(mysqltest |
30 |
MYSQL_ADD_EXECUTABLE(mysqltest |
29 |
mysqltest.cc |
31 |
mysqltest.cc |
30 |
mysqltest/error_names.cc |
32 |
mysqltest/error_names.cc |
31 |
@@ -71,6 +76,9 @@ MYSQL_ADD_EXECUTABLE(mysqltest |
33 |
@@ -73,6 +78,9 @@ MYSQL_ADD_EXECUTABLE(mysqltest |
32 |
ENABLE_EXPORTS |
34 |
ENABLE_EXPORTS |
33 |
LINK_LIBRARIES mysqlclient |
35 |
LINK_LIBRARIES mysqlclient |
34 |
) |
36 |
) |
Lines 38-44
Link Here
|
38 |
MYSQL_ADD_EXECUTABLE(mysqlcheck |
40 |
MYSQL_ADD_EXECUTABLE(mysqlcheck |
39 |
check/mysqlcheck.cc |
41 |
check/mysqlcheck.cc |
40 |
check/mysqlcheck_core.cc |
42 |
check/mysqlcheck_core.cc |
41 |
@@ -246,7 +254,9 @@ ENDIF() |
43 |
@@ -248,7 +256,9 @@ ENDIF() |
42 |
|
44 |
|
43 |
TARGET_COMPILE_DEFINITIONS(mysqlbinlog PRIVATE DISABLE_PSI_MUTEX) |
45 |
TARGET_COMPILE_DEFINITIONS(mysqlbinlog PRIVATE DISABLE_PSI_MUTEX) |
44 |
TARGET_INCLUDE_DIRECTORIES(mysqlbinlog PRIVATE ${CMAKE_SOURCE_DIR}/sql) |
46 |
TARGET_INCLUDE_DIRECTORIES(mysqlbinlog PRIVATE ${CMAKE_SOURCE_DIR}/sql) |
Lines 48-54
Link Here
|
48 |
MYSQL_ADD_EXECUTABLE(mysqladmin |
50 |
MYSQL_ADD_EXECUTABLE(mysqladmin |
49 |
mysqladmin.cc |
51 |
mysqladmin.cc |
50 |
LINK_LIBRARIES mysqlclient |
52 |
LINK_LIBRARIES mysqlclient |
51 |
@@ -259,6 +269,9 @@ MYSQL_ADD_EXECUTABLE(mysql_config_editor |
53 |
@@ -261,6 +271,9 @@ MYSQL_ADD_EXECUTABLE(mysql_config_editor |
52 |
mysql_config_editor.cc |
54 |
mysql_config_editor.cc |
53 |
LINK_LIBRARIES mysqlclient |
55 |
LINK_LIBRARIES mysqlclient |
54 |
) |
56 |
) |
Lines 58-64
Link Here
|
58 |
MYSQL_ADD_EXECUTABLE(mysql_secure_installation |
60 |
MYSQL_ADD_EXECUTABLE(mysql_secure_installation |
59 |
mysql_secure_installation.cc |
61 |
mysql_secure_installation.cc |
60 |
LINK_LIBRARIES mysqlclient |
62 |
LINK_LIBRARIES mysqlclient |
61 |
@@ -269,6 +282,7 @@ MYSQL_ADD_EXECUTABLE(mysql_ssl_rsa_setup |
63 |
@@ -271,6 +284,7 @@ MYSQL_ADD_EXECUTABLE(mysql_ssl_rsa_setup |
62 |
path.cc |
64 |
path.cc |
63 |
LINK_LIBRARIES mysys |
65 |
LINK_LIBRARIES mysys |
64 |
) |
66 |
) |