mirror of
https://github.com/MariaDB/server.git
synced 2025-02-22 13:23:07 +01:00

From e735cf2ed7cefb2af36f10f3cb47dfc060789df3, the PCRE_INCLUDES changed to PCRE_INCLUDE_DIRS for consistency. The columnstore module depends on the old name. Create a mapping for the columnstore submodule. 10.6+ fix for submodule is: * https://github.com/mariadb-corporation/mariadb-columnstore-engine/pull/3304
45 lines
2.5 KiB
CMake
45 lines
2.5 KiB
CMake
#set(PLUGIN_COLUMNSTORE "NO" CACHE STRING "Enable ColumnStore engine")
|
|
|
|
if("NO" STREQUAL "${PLUGIN_COLUMNSTORE}")
|
|
return()
|
|
endif()
|
|
|
|
# this does everything, gets the var from the correct scope, appends new
|
|
# values, sets in the correct scope
|
|
macro(APPEND_FOR_CPACK V)
|
|
get_directory_property(var DIRECTORY columnstore DEFINITION ${V})
|
|
set(${V} "${var}${ARGN}" PARENT_SCOPE)
|
|
endmacro()
|
|
|
|
IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" OR
|
|
CMAKE_SYSTEM_PROCESSOR STREQUAL "amd64")
|
|
|
|
# https://jira.mariadb.org/browse/MCOL-5611
|
|
FIND_PACKAGE(Boost 1.53 COMPONENTS system filesystem thread regex date_time chrono atomic)
|
|
IF (${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION} VERSION_GREATER "1.79")
|
|
MESSAGE_ONCE(CS_NO_BOOST "Boost Libraries >= 1.80.0 not supported!")
|
|
return()
|
|
ENDIF()
|
|
|
|
SET(PCRE_INCLUDES "${PCRE_INCLUDE_DIRS}")
|
|
add_subdirectory(columnstore)
|
|
|
|
IF(TARGET columnstore)
|
|
# Needed to bump the component changes up to the main scope
|
|
APPEND_FOR_CPACK(CPACK_COMPONENTS_ALL)
|
|
IF (RPM)
|
|
APPEND_FOR_CPACK(CPACK_RPM_columnstore-engine_PACKAGE_REQUIRES " binutils net-tools python3")
|
|
APPEND_FOR_CPACK(CPACK_RPM_columnstore-engine_PACKAGE_RECOMMENDS " jemalloc")
|
|
APPEND_FOR_CPACK(CPACK_RPM_columnstore-engine_USER_FILELIST ";%ignore /var/lib;%ignore /var")
|
|
APPEND_FOR_CPACK(CPACK_RPM_columnstore-engine_PACKAGE_CONFLICTS " thrift MariaDB-columnstore-platform MariaDB-columnstore-libs")
|
|
# these three don't have the list semantics, so no append here
|
|
SET(CPACK_RPM_columnstore-engine_PRE_INSTALL_SCRIPT_FILE ${CMAKE_CURRENT_SOURCE_DIR}/columnstore/build/preInstall_storage_engine.sh PARENT_SCOPE)
|
|
SET(CPACK_RPM_columnstore-engine_POST_INSTALL_SCRIPT_FILE ${CMAKE_CURRENT_SOURCE_DIR}/columnstore/build/postInstall_storage_engine.sh PARENT_SCOPE)
|
|
SET(CPACK_RPM_columnstore-engine_PRE_UNINSTALL_SCRIPT_FILE ${CMAKE_CURRENT_SOURCE_DIR}/columnstore/build/preUn_storage_engine.sh PARENT_SCOPE)
|
|
APPEND_FOR_CPACK(CPACK_RPM_columnstore-engine_PACKAGE_VERSION "")
|
|
SET(CPACK_RPM_columnstore-engine_PACKAGE_SUMMARY "MariaDB ColumnStore storage engine" PARENT_SCOPE)
|
|
SET(CPACK_RPM_columnstore-engine_PACKAGE_DESCRIPTION "The MariaDB ColumnStore storage engine is a high-performance columnar analytical engine, aimed at rapid processing of analytical queries on very large amounts of data." PARENT_SCOPE)
|
|
ENDIF()
|
|
INSTALL_MYSQL_TEST("${CMAKE_CURRENT_SOURCE_DIR}/mysql-test/" "plugin/columnstore")
|
|
ENDIF()
|
|
ENDIF()
|