From 26e77e002768c19226809561d09374568ea381b8 Mon Sep 17 00:00:00 2001 From: Jonathan Perkin Date: Wed, 24 Feb 2010 19:19:24 +0000 Subject: [PATCH] Some CMake packaging fixes: - Remove INSTALL-BINARY from installed docs directory, we provide a copy in the root directory (but perhaps this should be revisited later). - Disable audit_null and daemon_example plugins. - Fix the docs directory. - Remove mysql-test/Makefile.in - Build and install mysql_tzinfo_to_sql - Remove share/charsets/languages.html --- CMakeLists.txt | 1 + cmake/build_configurations/mysql_release.cmake | 2 ++ cmake/install_layout.cmake | 2 +- mysql-test/CMakeLists.txt | 1 + sql/CMakeLists.txt | 9 ++++++++- sql/share/CMakeLists.txt | 4 +++- 6 files changed, 16 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e5ac3ae7a8..036d0cdb9d6 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -278,6 +278,7 @@ ENDIF() SET(MYSQL_DOCS_LOCATION "" CACHE PATH "Location from where documentation is copied") MARK_AS_ADVANCED(MYSQL_DOCS_LOCATION) INSTALL(DIRECTORY Docs/ DESTINATION ${INSTALL_DOCDIR} + PATTERN "INSTALL-BINARY" EXCLUDE PATTERN "Makefile.*" EXCLUDE PATTERN "myisam.txt" EXCLUDE PATTERN "glibc*" EXCLUDE diff --git a/cmake/build_configurations/mysql_release.cmake b/cmake/build_configurations/mysql_release.cmake index 6834f006b6b..450ef9826c2 100644 --- a/cmake/build_configurations/mysql_release.cmake +++ b/cmake/build_configurations/mysql_release.cmake @@ -80,6 +80,8 @@ IF(FEATURE_SET) ENDFOREACH() ENDIF() +SET(WITHOUT_AUDIT_NULL ON CACHE BOOL "") +SET(WITHOUT_DAEMON_EXAMPLE ON CACHE BOOL "") OPTION(ENABLE_LOCAL_INFILE "" ON) SET(WITH_SSL bundled CACHE STRING "") diff --git a/cmake/install_layout.cmake b/cmake/install_layout.cmake index 7a0d34d6a17..92eebebd4e2 100755 --- a/cmake/install_layout.cmake +++ b/cmake/install_layout.cmake @@ -80,7 +80,7 @@ ENDIF() SET(INSTALL_LIBDIR_STANDALONE "lib") SET(INSTALL_INCLUDEDIR_STANDALONE "include") SET(INSTALL_PLUGINDIR_STANDALONE "lib/plugin") - SET(INSTALL_DOCDIR_STANDALONE "doc") + SET(INSTALL_DOCDIR_STANDALONE "docs") SET(INSTALL_MANDIR_STANDALONE "man") SET(INSTALL_MYSQLSHAREDIR_STANDALONE "share") SET(INSTALL_SHAREDIR_STANDALONE "share") diff --git a/mysql-test/CMakeLists.txt b/mysql-test/CMakeLists.txt index 75e7502751c..794f286ac56 100644 --- a/mysql-test/CMakeLists.txt +++ b/mysql-test/CMakeLists.txt @@ -23,6 +23,7 @@ INSTALL( PATTERN "mtr.out*" EXCLUDE PATTERN ".cvsignore" EXCLUDE PATTERN "*.am" EXCLUDE + PATTERN "*.in" EXCLUDE ) diff --git a/sql/CMakeLists.txt b/sql/CMakeLists.txt index 28a9d321455..8399b0c7219 100755 --- a/sql/CMakeLists.txt +++ b/sql/CMakeLists.txt @@ -191,7 +191,14 @@ ADD_CUSTOM_COMMAND( COMMAND ${CMAKE_COMMAND} -E remove -f lex_hash.h.tmp WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/gen_lex_hash.cc) - + +MYSQL_ADD_EXECUTABLE(mysql_tzinfo_to_sql tztime.cc) +SET_TARGET_PROPERTIES(mysql_tzinfo_to_sql PROPERTIES COMPILE_FLAGS "-DTZINFO2SQL") +TARGET_LINK_LIBRARIES(mysql_tzinfo_to_sql ${MYSQLD_STATIC_PLUGIN_LIBS} + mysys dbug strings vio regex + ${LIBWRAP} ${LIBCRYPT} ${LIBDL} + ${SSL_LIBRARIES}) + ADD_CUSTOM_TARGET( GenServerSource DEPENDS ${GEN_SOURCES} diff --git a/sql/share/CMakeLists.txt b/sql/share/CMakeLists.txt index 944120cfc24..1868200f038 100644 --- a/sql/share/CMakeLists.txt +++ b/sql/share/CMakeLists.txt @@ -47,6 +47,8 @@ FOREACH (dir ${dirs}) INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${dir} DESTINATION ${INSTALL_MYSQLSHAREDIR}) ENDFOREACH() -INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/charsets DESTINATION ${INSTALL_MYSQLSHAREDIR}) +INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/charsets DESTINATION ${INSTALL_MYSQLSHAREDIR} + PATTERN "languages.html" EXCLUDE +) INSTALL(FILES ${files} DESTINATION ${INSTALL_MYSQLSHAREDIR})