Commit 4559fb1f authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

merge

parents 3929d2c3 99714784
...@@ -179,6 +179,11 @@ foreach my $option (@ARGV) ...@@ -179,6 +179,11 @@ foreach my $option (@ARGV)
$cmakeargs = $cmakeargs." -DMYSQL_DATADIR=".substr($option,14); $cmakeargs = $cmakeargs." -DMYSQL_DATADIR=".substr($option,14);
next; next;
} }
if ($option =~ /with-debug=full/)
{
$cmakeargs = $cmakeargs." -DWITH_DEBUG_FULL=1";
next;
}
$option = uc($option); $option = uc($option);
$option =~ s/-/_/g; $option =~ s/-/_/g;
...@@ -186,5 +191,6 @@ foreach my $option (@ARGV) ...@@ -186,5 +191,6 @@ foreach my $option (@ARGV)
} }
print("configure.pl : calling cmake $srcdir $cmakeargs\n"); print("configure.pl : calling cmake $srcdir $cmakeargs\n");
unlink("CMakeCache.txt");
my $rc = system("cmake $srcdir $cmakeargs"); my $rc = system("cmake $srcdir $cmakeargs");
exit($rc); exit($rc);
...@@ -52,6 +52,11 @@ MACRO(MYSQL_ADD_PLUGIN) ...@@ -52,6 +52,11 @@ MACRO(MYSQL_ADD_PLUGIN)
SET(WITH_${plugin} 1) SET(WITH_${plugin} 1)
ENDIF() ENDIF()
IF(WITH_MAX_NO_NDB)
SET(WITH_MAX 1)
SET(WITHOUT_NDBCLUSTER 1)
ENDIF()
IF(WITH_${plugin}_STORAGE_ENGINE IF(WITH_${plugin}_STORAGE_ENGINE
OR WITH_{$plugin} OR WITH_{$plugin}
OR WITH_ALL OR WITH_ALL
......
...@@ -64,12 +64,6 @@ ELSE() ...@@ -64,12 +64,6 @@ ELSE()
ENDIF() ENDIF()
ADD_CUSTOM_TARGET(test-force
COMMAND ${SETCONFIG_COMMAND}
COMMAND ${SETOS_COMMAND}
COMMAND perl mysql-test-run.pl --force
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
SET(EXP --experimental=collections/default.experimental) SET(EXP --experimental=collections/default.experimental)
IF(WIN32) IF(WIN32)
...@@ -100,6 +94,11 @@ SET(TEST_BT_START ...@@ -100,6 +94,11 @@ SET(TEST_BT_START
COMMAND ${SET_ENV} MTR_BUILD_THREAD=auto COMMAND ${SET_ENV} MTR_BUILD_THREAD=auto
) )
ADD_CUSTOM_TARGET(test-force
${TEST_BT_START}
COMMAND ${MTR_FORCE}
)
ADD_CUSTOM_TARGET(test-bt ADD_CUSTOM_TARGET(test-bt
${TEST_BT_START} ${TEST_BT_START}
COMMAND ${MTR_FORCE} --comment=normal --timer --skip-ndbcluster --report-features ${EXP} COMMAND ${MTR_FORCE} --comment=normal --timer --skip-ndbcluster --report-features ${EXP}
...@@ -124,4 +123,3 @@ ADD_CUSTOM_TARGET(test-bt-debug ...@@ -124,4 +123,3 @@ ADD_CUSTOM_TARGET(test-bt-debug
COMMAND ${MTR_FORCE} --comment=debug --timer --skip-ndbcluster --skip-rpl --report-features ${EXP} COMMAND ${MTR_FORCE} --comment=debug --timer --skip-ndbcluster --skip-rpl --report-features ${EXP}
) )
...@@ -20,31 +20,41 @@ IF(NOT CMAKE_CROSSCOMPILING) ...@@ -20,31 +20,41 @@ IF(NOT CMAKE_CROSSCOMPILING)
TARGET_LINK_LIBRARIES(comp_sql) TARGET_LINK_LIBRARIES(comp_sql)
ENDIF() ENDIF()
SET(FIX_PRIVS_IN
${CMAKE_CURRENT_SOURCE_DIR}/mysql_system_tables.sql
${CMAKE_CURRENT_SOURCE_DIR}/mysql_system_tables_fix.sql
)
SET(FIX_PRIVILEGES_SQL
${CMAKE_CURRENT_BINARY_DIR}/mysql_fix_privilege_tables.sql
)
# Build mysql_fix_privilege_tables.sql (concatenate 2 sql scripts) # Build mysql_fix_privilege_tables.sql (concatenate 2 sql scripts)
FILE(WRITE ${FIX_PRIVILEGES_SQL} "") IF(NOT WIN32 OR CMAKE_CROSSCOMPILING)
FOREACH(FILENAME ${FIX_PRIVS_IN}) FIND_PROGRAM(CAT_EXECUTABLE cat DOC "path to the executable")
FILE(READ "${FILENAME}" CONTENTS) ENDIF()
FILE(APPEND ${FIX_PRIVILEGES_SQL} "${CONTENTS}")
ENDFOREACH()
IF(CAT_EXECUTABLE)
SET(CAT_COMMAND COMMAND
${CMAKE_COMMAND} -E chdir ${CMAKE_CURRENT_SOURCE_DIR}
${CAT_EXECUTABLE} mysql_system_tables.sql mysql_system_tables_fix.sql >
${CMAKE_CURRENT_BINARY_DIR}/mysql_fix_privilege_tables.sql
)
ELSEIF(WIN32)
FILE(TO_NATIVE_PATH ${CMAKE_CURRENT_BINARY_DIR}/mysql_fix_privilege_tables.sql
native_outfile )
SET(CAT_COMMAND
COMMAND ${CMAKE_COMMAND} -E chdir ${CMAKE_CURRENT_SOURCE_DIR}
cmd /c copy /b mysql_system_tables.sql + mysql_system_tables_fix.sql
${native_outfile} )
ELSE()
MESSAGE(FATAL_ERROR "Cannot concatenate files")
ENDIF()
# Build mysql_fix_privilege_tables.c # Build mysql_fix_privilege_tables.c
ADD_CUSTOM_COMMAND( ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/mysql_fix_privilege_tables_sql.c OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/mysql_fix_privilege_tables_sql.c
${CAT_COMMAND}
COMMAND comp_sql COMMAND comp_sql
mysql_fix_privilege_tables mysql_fix_privilege_tables
mysql_fix_privilege_tables.sql mysql_fix_privilege_tables.sql
mysql_fix_privilege_tables_sql.c mysql_fix_privilege_tables_sql.c
DEPENDS comp_sql
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS comp_sql
${CMAKE_CURRENT_SOURCE_DIR}/mysql_system_tables.sql
${CMAKE_CURRENT_SOURCE_DIR}/mysql_system_tables_fix.sql
) )
# Add target for the above to be built # Add target for the above to be built
......
...@@ -238,8 +238,12 @@ ADD_CUSTOM_TARGET(dist ...@@ -238,8 +238,12 @@ ADD_CUSTOM_TARGET(dist
WORKING_DIRECTORY ${CMAKE_BINARY_DIR} WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
) )
ADD_CUSTOM_TARGET(distclean
COMMAND ${CMAKE_COMMAND} -E echo WARNING: distclean target is not functional
COMMAND ${CMAKE_COMMAND} -E echo Use 'bzr clean-tree' with --unknown and/or
--ignored parameter instead
VERBATIM
)
IF(INSTALL_LAYOUT STREQUAL "STANDALONE") IF(INSTALL_LAYOUT STREQUAL "STANDALONE")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment