1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

cmake fixes for generated files errorids.h and messageids.h

This commit is contained in:
Ben Thompson
2016-08-15 11:13:38 -05:00
parent 10e5ed83ce
commit b43e086ef3
5 changed files with 15 additions and 327 deletions

View File

@ -13,14 +13,19 @@ set(loggingcpp_LIB_SRCS
stopwatch.cpp
idberrorinfo.cpp)
add_library(loggingcpp SHARED ${loggingcpp_LIB_SRCS})
ADD_CUSTOM_COMMAND(TARGET loggingcpp PRE_BUILD
ADD_CUSTOM_COMMAND(
OUTPUT messageids.h errorids.h
COMMAND ./genMsgAndErrId.sh
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS genMsgId.pl genErrId.pl
)
ADD_CUSTOM_TARGET(genMsgAndErrId DEPENDS messageids.h errorids.h)
add_library(loggingcpp SHARED ${loggingcpp_LIB_SRCS})
add_dependencies(loggingcpp genMsgAndErrId)
set_target_properties(loggingcpp PROPERTIES VERSION 1.0.0 SOVERSION 1)
install(TARGETS loggingcpp DESTINATION ${ENGINE_LIBDIR})