You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-10-21 11:33:43 +03:00
This patch: * Moves config files from /usr/local/mariadb/columnstore/etc to ENGINE_SYSCONFDIR/columnstore (ENGINE_SYSCONFDIR is /etc by default) * Sets a define called MCSSYSCONFDIR whic contains the ENGINE_SYSCONFDIR compile time setting * Modifies scripts and code to use the new paths * Removes a whole bunch of files we don't use
35 lines
886 B
CMake
35 lines
886 B
CMake
|
|
include_directories( ${ENGINE_COMMON_INCLUDES} )
|
|
|
|
|
|
########### next target ###############
|
|
#TODO: put generated files in binary dir
|
|
ADD_CUSTOM_COMMAND(
|
|
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/messageids.h ${CMAKE_CURRENT_SOURCE_DIR}/errorids.h
|
|
COMMAND /bin/sh genMsgAndErrId.sh
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
DEPENDS genMsgId.pl genErrId.pl
|
|
)
|
|
|
|
|
|
add_library(loggingcpp SHARED
|
|
message.cpp
|
|
messagelog.cpp
|
|
logger.cpp
|
|
errorcodes.cpp
|
|
sqllogger.cpp
|
|
stopwatch.cpp
|
|
idberrorinfo.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/messageids.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/errorids.h
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(loggingcpp PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
|
|
|
install(TARGETS loggingcpp DESTINATION ${ENGINE_LIBDIR} COMPONENT libs)
|
|
|
|
install(FILES MessageFile.txt ErrorMessage.txt DESTINATION ${ENGINE_SYSCONFDIR}/columnstore COMPONENT platform)
|
|
|