You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
Merge pull request #1376 from benthompson15/MCOL-4155
Fix for using correct cnf file when building as submodule.
This commit is contained in:
@ -38,9 +38,18 @@ if (COMMAND mysql_add_plugin)
|
||||
IF(NOT(RPM OR DEB))
|
||||
SET(disabled DISABLED)
|
||||
ENDIF()
|
||||
|
||||
FILE(COPY columnstore.cnf DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/)
|
||||
if (BUILD_CONFIG STREQUAL "enterprise")
|
||||
FILE(RENAME ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/columnstore.cnf ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/x-columnstore.cnf)
|
||||
SET(CS_CNF_FILE "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/x-columnstore.cnf")
|
||||
else ()
|
||||
SET(CS_CNF_FILE "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/columnstore.cnf")
|
||||
endif ()
|
||||
|
||||
mysql_add_plugin(columnstore ${libcalmysql_SRCS} STORAGE_ENGINE MODULE_ONLY ${disabled}
|
||||
LINK_LIBRARIES ${ENGINE_LDFLAGS} ${ENGINE_WRITE_LIBS} ${NETSNMP_LIBRARIES} threadpool
|
||||
COMPONENT columnstore-engine)
|
||||
COMPONENT columnstore-engine CONFIG ${CS_CNF_FILE})
|
||||
else ()
|
||||
add_library(ha_columnstore SHARED ${libcalmysql_SRCS})
|
||||
SET_TARGET_PROPERTIES(ha_columnstore PROPERTIES PREFIX "")
|
||||
@ -53,6 +62,15 @@ else ()
|
||||
|
||||
# define this dummy target for standalone builds (ie, when mysql_add_plugin doesn't exist)
|
||||
add_custom_target(columnstore DEPENDS ha_columnstore)
|
||||
if(BUILD_CONFIG STREQUAL "enterprise")
|
||||
message(STATUS "enterprise build: columnstore.cnf renamed to x-columnstore.cnf on install")
|
||||
install(FILES columnstore.cnf
|
||||
RENAME x-columnstore.cnf
|
||||
DESTINATION ${MARIADB_MYCNFDIR} COMPONENT columnstore-engine)
|
||||
else()
|
||||
install(FILES columnstore.cnf
|
||||
DESTINATION ${MARIADB_MYCNFDIR} COMPONENT columnstore-engine)
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
if (TARGET columnstore)
|
||||
@ -65,14 +83,4 @@ if (TARGET columnstore)
|
||||
DESTINATION ${ENGINE_SUPPORTDIR} COMPONENT columnstore-engine)
|
||||
install(PROGRAMS install_mcs_mysql.sh
|
||||
DESTINATION ${ENGINE_SBINDIR} COMPONENT columnstore-engine)
|
||||
|
||||
if(BUILD_CONFIG STREQUAL "enterprise")
|
||||
message(STATUS "enterprise build: columnstore.cnf renamed to x-columnstore.cnf on install")
|
||||
install(FILES columnstore.cnf
|
||||
RENAME x-columnstore.cnf
|
||||
DESTINATION ${MARIADB_MYCNFDIR} COMPONENT columnstore-engine)
|
||||
else()
|
||||
install(FILES columnstore.cnf
|
||||
DESTINATION ${MARIADB_MYCNFDIR} COMPONENT columnstore-engine)
|
||||
endif()
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user