Commit 740bd8b7 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

[t:4871] fix log code dependencies

git-svn-id: file:///svn/toku/tokudb@43524 c7de825b-a66e-492c-adef-691d508d4ae1
parent 5894b15c
......@@ -14,6 +14,7 @@ add_custom_command(
OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/log_print.c"
OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/log_header.h"
COMMAND $<TARGET_FILE:logformat> "${CMAKE_CURRENT_SOURCE_DIR}"
DEPENDS logformat
)
add_custom_target(generate_logging_code DEPENDS
"${CMAKE_CURRENT_SOURCE_DIR}/log_code.c"
......
......@@ -21,12 +21,12 @@ set(tokudb_srcs
## make the shared library
add_library(${LIBTOKUDB} SHARED ${tokudb_srcs})
add_dependencies(${LIBTOKUDB} generate_logging_code install_tdb_h)
add_dependencies(${LIBTOKUDB} install_tdb_h)
target_link_libraries(${LIBTOKUDB} lock_tree_static range_tree_static newbrt_static)
## make the static library
add_library(${LIBTOKUDB}_static STATIC ${tokudb_srcs})
add_dependencies(${LIBTOKUDB}_static generate_logging_code install_tdb_h)
add_dependencies(${LIBTOKUDB}_static install_tdb_h)
target_link_libraries(${LIBTOKUDB}_static lock_tree_static range_tree_static newbrt_static)
## add a version script and set -fvisibility=hidden for the shared library
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment