From: Ganesh Mahalingam Date: Thu, 15 Dec 2016 05:34:24 +0000 (-0800) Subject: Fix error in including all files in osd_tp X-Git-Tag: v12.0.0~204^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fa0c5881a4da9963960ba498babb447c1c80cae2;p=ceph.git Fix error in including all files in osd_tp osd_tp is the only variable that is a list and with current logic only the last file of the list will be included in the tracing library. This patch is to address that issue Signed-off-by: Ganesh Mahalingam --- diff --git a/src/tracing/CMakeLists.txt b/src/tracing/CMakeLists.txt index c434e62f595c..8b153935ec25 100644 --- a/src/tracing/CMakeLists.txt +++ b/src/tracing/CMakeLists.txt @@ -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