Lines 1-6
Link Here
|
1 |
--- scripts/CMakeLists.txt.orig 2014-08-09 00:13:37.000000000 +0200 |
1 |
--- scripts/CMakeLists.txt.orig 2014-08-09 00:13:37.000000000 +0200 |
2 |
+++ scripts/CMakeLists.txt 2014-09-05 22:33:01.060378167 +0200 |
2 |
+++ scripts/CMakeLists.txt 2014-09-05 22:33:01.060378167 +0200 |
3 |
@@ -72,6 +72,7 @@ |
3 |
@@ -73,6 +73,7 @@ |
4 |
) |
4 |
) |
5 |
ENDIF() |
5 |
ENDIF() |
6 |
|
6 |
|
Lines 8-14
Link Here
|
8 |
INSTALL(FILES |
8 |
INSTALL(FILES |
9 |
${CMAKE_CURRENT_SOURCE_DIR}/mysql_system_tables.sql |
9 |
${CMAKE_CURRENT_SOURCE_DIR}/mysql_system_tables.sql |
10 |
${CMAKE_CURRENT_SOURCE_DIR}/mysql_system_tables_data.sql |
10 |
${CMAKE_CURRENT_SOURCE_DIR}/mysql_system_tables_data.sql |
11 |
@@ -81,6 +82,7 @@ |
11 |
@@ -82,6 +83,7 @@ |
12 |
${FIX_PRIVILEGES_SQL} |
12 |
${FIX_PRIVILEGES_SQL} |
13 |
DESTINATION ${INSTALL_MYSQLSHAREDIR} COMPONENT Server |
13 |
DESTINATION ${INSTALL_MYSQLSHAREDIR} COMPONENT Server |
14 |
) |
14 |
) |
Lines 16-22
Link Here
|
16 |
|
16 |
|
17 |
# TCMalloc hacks |
17 |
# TCMalloc hacks |
18 |
IF(MALLOC_LIB) |
18 |
IF(MALLOC_LIB) |
19 |
@@ -140,6 +142,7 @@ |
19 |
@@ -134,6 +136,7 @@ |
20 |
SET(HOSTNAME "hostname") |
20 |
SET(HOSTNAME "hostname") |
21 |
SET(MYSQLD_USER "mysql") |
21 |
SET(MYSQLD_USER "mysql") |
22 |
|
22 |
|
Lines 24-30
Link Here
|
24 |
# Required for mysqlbug until autotools are deprecated, once done remove these |
24 |
# Required for mysqlbug until autotools are deprecated, once done remove these |
25 |
# and expand default cmake variables |
25 |
# and expand default cmake variables |
26 |
SET(CC ${CMAKE_C_COMPILER}) |
26 |
SET(CC ${CMAKE_C_COMPILER}) |
27 |
@@ -180,6 +183,7 @@ |
27 |
@@ -147,7 +150,7 @@ |
|
|
28 |
|
29 |
# Also required for mysqlbug, autoconf only supports --version so for now we |
30 |
# just explicitly require GNU |
31 |
-IF(CMAKE_COMPILER_IS_GNUCC) |
32 |
+IF(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_C_COMPILER_ID}" MATCHES "Clang") |
33 |
EXECUTE_PROCESS( |
34 |
COMMAND ${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1} --version |
35 |
COMMAND sed 1q |
36 |
@@ -155,7 +158,7 @@ |
37 |
ELSE() |
38 |
SET(CC_VERSION "") |
39 |
ENDIF() |
40 |
-IF(CMAKE_COMPILER_IS_GNUCXX) |
41 |
+IF(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") |
42 |
EXECUTE_PROCESS( |
43 |
COMMAND ${CMAKE_CXX_COMPILER} ${CMAKE_CXX_COMPILER_ARG1} --version |
44 |
COMMAND sed 1q |
45 |
@@ -174,6 +177,7 @@ |
28 |
DESTINATION ${INSTALL_BINDIR} |
46 |
DESTINATION ${INSTALL_BINDIR} |
29 |
COMPONENT Server |
47 |
COMPONENT Server |
30 |
) |
48 |
) |
Lines 32-38
Link Here
|
32 |
|
50 |
|
33 |
ENDIF(UNIX) |
51 |
ENDIF(UNIX) |
34 |
|
52 |
|
35 |
@@ -204,6 +208,7 @@ |
53 |
@@ -198,6 +202,7 @@ |
36 |
SET(localstatedir ${MYSQL_DATADIR}) |
54 |
SET(localstatedir ${MYSQL_DATADIR}) |
37 |
ENDIF() |
55 |
ENDIF() |
38 |
|
56 |
|
Lines 40-46
Link Here
|
40 |
IF(UNIX) |
58 |
IF(UNIX) |
41 |
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mysql_install_db.sh |
59 |
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mysql_install_db.sh |
42 |
${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db ESCAPE_QUOTES @ONLY) |
60 |
${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db ESCAPE_QUOTES @ONLY) |
43 |
@@ -219,6 +224,7 @@ |
61 |
@@ -213,6 +218,7 @@ |
44 |
COMPONENT Server |
62 |
COMPONENT Server |
45 |
) |
63 |
) |
46 |
ENDIF() |
64 |
ENDIF() |
Lines 48-54
Link Here
|
48 |
|
66 |
|
49 |
SET(prefix "${CMAKE_INSTALL_PREFIX}") |
67 |
SET(prefix "${CMAKE_INSTALL_PREFIX}") |
50 |
IF(INSTALL_SYSCONFDIR) |
68 |
IF(INSTALL_SYSCONFDIR) |
51 |
@@ -281,6 +287,8 @@ |
69 |
@@ -275,6 +281,8 @@ |
52 |
STRING(REGEX REPLACE "^lib" "" lib "${lib}") |
70 |
STRING(REGEX REPLACE "^lib" "" lib "${lib}") |
53 |
SET(${var} "${${var}}-l${lib} " ) |
71 |
SET(${var} "${${var}}-l${lib} " ) |
54 |
ENDIF() |
72 |
ENDIF() |
Lines 57-63
Link Here
|
57 |
ELSE() |
75 |
ELSE() |
58 |
SET(${var} "${${var}}-l${lib} " ) |
76 |
SET(${var} "${${var}}-l${lib} " ) |
59 |
ENDIF() |
77 |
ENDIF() |
60 |
@@ -339,18 +347,8 @@ |
78 |
@@ -333,18 +341,8 @@ |
61 |
SET(BIN_SCRIPTS |
79 |
SET(BIN_SCRIPTS |
62 |
msql2mysql |
80 |
msql2mysql |
63 |
mysql_config |
81 |
mysql_config |