mirror of
https://github.com/MariaDB/server.git
synced 2025-08-06 18:41:37 +02:00

don't build the server with jemalloc. only build tokudb with it. move tokudb into a separate package, because it brings a new dependency
16 lines
774 B
CMake
16 lines
774 B
CMake
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS _GNU_SOURCE DONT_DEPRECATE_ERRNO)
|
|
|
|
set(tools tokudb_dump tokuftdump tokuft_logprint tdb-recover ftverify)
|
|
foreach(tool ${tools})
|
|
add_executable(${tool} ${tool}.cc)
|
|
add_dependencies(${tool} install_tdb_h)
|
|
target_link_libraries(${tool} ${LIBTOKUDB}_static ft_static z lzma snappy ${LIBTOKUPORTABILITY}_static ${CMAKE_THREAD_LIBS_INIT} ${EXTRA_SYSTEM_LIBS})
|
|
|
|
add_space_separated_property(TARGET ${tool} COMPILE_FLAGS -fvisibility=hidden)
|
|
endforeach(tool)
|
|
|
|
# link in math.h library just for this tool.
|
|
target_link_libraries(ftverify m)
|
|
|
|
install(TARGETS tokuftdump DESTINATION ${INSTALL_BINDIR} COMPONENT tokudb-engine)
|
|
install(TARGETS tokuft_logprint DESTINATION ${INSTALL_BINDIR} COMPONENT tokudb-engine)
|