mirror of
https://github.com/MariaDB/server.git
synced 2025-10-12 12:25:37 +03:00
less re-cmake messages
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
find_path(
|
||||
ZSTD_INCLUDE_DIR
|
||||
NAMES "zstd.h"
|
||||
)
|
||||
|
||||
find_library(
|
||||
ZSTD_LIBRARY
|
||||
NAMES zstd
|
||||
)
|
||||
|
||||
set(ZSTD_LIBRARIES ${ZSTD_LIBRARY})
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(
|
||||
ZSTD DEFAULT_MSG ZSTD_INCLUDE_DIR ZSTD_LIBRARIES)
|
||||
|
||||
mark_as_advanced(ZSTD_INCLUDE_DIR ZSTD_LIBRARIES ZSTD_FOUND)
|
||||
|
25
cmake/Findzstd.cmake
Normal file
25
cmake/Findzstd.cmake
Normal file
@@ -0,0 +1,25 @@
|
||||
# - Find zstd
|
||||
# Find the zstd compression library and includes
|
||||
#
|
||||
# ZSTD_INCLUDE_DIR - where to find zstd.h, etc.
|
||||
# ZSTD_LIBRARIES - List of libraries when using zstd.
|
||||
# ZSTD_FOUND - True if zstd found.
|
||||
|
||||
if (DEFINED ZSTD_LIBRARIES)
|
||||
return()
|
||||
endif()
|
||||
|
||||
find_path(ZSTD_INCLUDE_DIR
|
||||
NAMES zstd.h
|
||||
HINTS ${ZSTD_ROOT_DIR}/include)
|
||||
|
||||
find_library(ZSTD_LIBRARIES
|
||||
NAMES zstd
|
||||
HINTS ${ZSTD_ROOT_DIR}/lib)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(zstd DEFAULT_MSG ZSTD_LIBRARIES ZSTD_INCLUDE_DIR)
|
||||
|
||||
mark_as_advanced(
|
||||
ZSTD_LIBRARIES
|
||||
ZSTD_INCLUDE_DIR)
|
@@ -135,7 +135,7 @@ IF(NOT VERSION)
|
||||
|
||||
SET(package_name "mariadb${PRODUCT_TAG}-${VERSION}-${SYSTEM_NAME_AND_PROCESSOR}")
|
||||
|
||||
MESSAGE(STATUS "Packaging as: ${package_name}")
|
||||
MESSAGE_ONCE(package_name "Packaging as: ${package_name}")
|
||||
|
||||
# Sometimes package suffix is added (something like "-icc-glibc23")
|
||||
IF(PACKAGE_SUFFIX)
|
||||
|
@@ -20,10 +20,12 @@ MACRO(CHECK_SYSTEMD)
|
||||
SET(WITH_SYSTEMD "auto" CACHE STRING "Enable systemd scripts and notification support")
|
||||
IF(WITH_SYSTEMD STREQUAL "yes" OR WITH_SYSTEMD STREQUAL "auto")
|
||||
IF(PKG_CONFIG_FOUND)
|
||||
IF(WITH_SYSTEMD STREQUAL "yes")
|
||||
pkg_search_module(LIBSYSTEMD REQUIRED libsystemd libsystemd-daemon)
|
||||
ELSE()
|
||||
pkg_search_module(LIBSYSTEMD libsystemd libsystemd-daemon)
|
||||
IF (NOT DEFINED LIBSYSTEMD_FOUND)
|
||||
IF(WITH_SYSTEMD STREQUAL "yes")
|
||||
pkg_search_module(LIBSYSTEMD REQUIRED libsystemd libsystemd-daemon)
|
||||
ELSE()
|
||||
pkg_search_module(LIBSYSTEMD libsystemd libsystemd-daemon)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
IF(HAVE_DLOPEN)
|
||||
SET(LIBSYSTEMD ${LIBSYSTEMD_LIBRARIES})
|
||||
|
Submodule libmariadb updated: 463211f4a9...ade0d67b0a
@@ -33,7 +33,7 @@ endif()
|
||||
|
||||
# Optional compression libraries.
|
||||
|
||||
foreach(compression_lib LZ4 BZIP2 ZSTD snappy)
|
||||
foreach(compression_lib LZ4 BZIP2 zstd snappy)
|
||||
FIND_PACKAGE(${compression_lib} QUIET)
|
||||
|
||||
SET(WITH_ROCKSDB_${compression_lib} AUTO CACHE STRING
|
||||
@@ -76,7 +76,7 @@ if(ZSTD_FOUND AND (NOT WITH_ROCKSDB_ZSTD STREQUAL "OFF"))
|
||||
if (ZSTD_VALID)
|
||||
add_definitions(-DZSTD)
|
||||
include_directories(${ZSTD_INCLUDE_DIR})
|
||||
list(APPEND THIRDPARTY_LIBS ${ZSTD_LIBRARY})
|
||||
list(APPEND THIRDPARTY_LIBS ${ZSTD_LIBRARIES})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -392,4 +392,3 @@ target_link_libraries(rocksdblib ${THIRDPARTY_LIBS} ${SYSTEM_LIBS})
|
||||
IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
set_target_properties(rocksdblib PROPERTIES COMPILE_FLAGS "-fPIC -fno-builtin-memcmp -frtti")
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user