-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
17 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS _GNU_SOURCE DONT_DEPRECATE_ERRNO) | ||
|
||
set(utils tokudb_dump) | ||
foreach(util ${utils}) | ||
add_executable(${util} ${util}) | ||
target_link_libraries(${util} ${LIBTOKUDB}_static ft_static z lzma ${LIBTOKUPORTABILITY}_static ${CMAKE_THREAD_LIBS_INIT} ${EXTRA_SYSTEM_LIBS}) | ||
set(tools tokudb_dump tokuftdump tdb_logprint tdb-recover ftverify) | ||
foreach(tool ${tools}) | ||
add_executable(${tool} ${tool}) | ||
add_dependencies(${tool} install_tdb_h) | ||
target_link_libraries(${tool} ${LIBTOKUDB}_static ft_static z lzma ${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 bin | ||
COMPONENT tokukv_tools | ||
) | ||
|
||
add_space_separated_property(TARGET ${util} COMPILE_FLAGS -fvisibility=hidden) | ||
endforeach(util) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.