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
cmake fixes for generated files errorids.h and messageids.h
This commit is contained in:
@ -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})
|
||||
|
Reference in New Issue
Block a user