Merge pull request #12501 from ganeshmaharaj/fix-osd-tracing

tracing: Fix error in including all files in osd_tp

Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2017-01-13 18:18:41 +08:00 committed by GitHub
commit a6dfd7ef77

View File

@ -26,8 +26,9 @@ function(add_tracing_library name tracings version)
get_filename_component(tp ${tp_file} NAME_WE)
list(APPEND hdrs
${header_dir}/${tp}.h)
list(APPEND tpfiles ${tp}.c)
endforeach()
add_library(${name} SHARED ${hdrs} ${tp}.c)
add_library(${name} SHARED ${hdrs} ${tpfiles})
target_link_libraries(${name} ${LTTNGUST_LIBRARIES} ${CMAKE_DL_LIBS})
string(REGEX MATCH "^[0-9]+" soversion ${version})
set_target_properties(${name} PROPERTIES